Watch
-
Add Favorite
Does this version work for you?
Propmenu FR
- Version FDGSpawn 1.3
posted on 2010-06-19 22:52:14
by hackerz
Description
//// Script: FDGSpawn 1.3 FR
//// Auteur: Fishy, developement initial: Sleepingpills ; Traduction française : HaCkErZ
//// Requierts: EventScripts 1.5 avec popup chargé(es_load popup). Attention à ServSecurity v0.8.3(anti popup crash)
//// Après le chargement de ce script, les joueurs doivent se reconecter pour recevoir leurs credits,
//// je suggère un changement de map pour cela.
// Configurer le script:
block config
{
// Credits maximum qu'un joueur peut avoir. Si les joueurs spam, vous pouvez le baisser
es_xsetinfo credits_max 6
// Le nombre de credits 'gratuit' qu'un joueur recoit lors de sa connection
// Si la valeur est plus haute que credits_max,les credits depasseront pas cette valeur
es_xsetinfo credits_connect 0
// Le nombre de credits 'gratuit' qu'un joueur recoit lors de son spawn
es_xsetinfo credits_spawn 5
// Le nombre de credits qu'un joueur recoit par kill
es_xsetinfo credits_kill 2
// The number of seconds before the plugin explains itself to players who connect
es_xsetinfo credits_helpdelay 10
}
// NE PAS EDITER APRES CETTE LIGNE, LE SCRIPT RISQUE DE NE PLUS FONCTIONNER!
block load
{
es_doblock fdgspawn/config
if (server_var(credits_connect) greaterthan server_var(credits_max)) do
{
es_xsetinfo credits_connect server_var(credits_max)
}
es_keygroupcreate s_uses
es_doblock fdgspawn/propmenupopup
es_msg FDG Spawner (1.3) a ete (re)charge. Veuiller rebooter ou changer de map
}
block unload
{
es_keygroupdelete s_uses
es_msg FDG Spawner (1.3) a ete decharge. Vous ne pouvez plus utiliser !propmenu.
}
event player_spawn
{
es_xsetinfo s_stemp 0
es_keygetvalue s_stemp s_uses event_var(userid) uses
es_math s_stemp + server_var(credits_spawn)
if (server_var(s_stemp) greaterthan server_var(credits_max)) do
{
es_keysetvalue s_uses event_var(userid) uses server_var(credits_max)
es_tell event_var(userid) #green Vos Credits: server_var(credits_max) (Maximum)
}
else do
{
es_keysetvalue s_uses event_var(userid) uses server_var(s_stemp)
es_tell event_var(userid) #green Vos Credits: server_var(s_stemp) (+ server_var(credits_spawn))
}
}
event player_activate
{
es_delayed server_var(credits_helpdelay) es_tell event_var(userid) #lightgreen FDG !propmenu v1.3 FR, par HaCkErZ
es_delayed server_var(credits_helpdelay) es_tell event_var(userid) #lightgreen Ecrire !propmenu pour spawn des props
es_delayed server_var(credits_helpdelay) es_tell event_var(userid) #lightgreen Tuez des joueurs pour gagner des credits.
es_keydelete s_uses event_var(userid)
es_keycreate s_uses event_var(userid)
es_keysetvalue s_uses event_var(userid) uses server_var(credits_connect)
}
event player_disconnect
{
es_keydelete s_uses event_var(userid)
}
event player_death
{
es_xsetinfo s_dtemp 0
es_keygetvalue s_dtemp s_uses event_var(attacker) uses
es_math s_dtemp + server_var(credits_kill)
if (server_var(s_dtemp) greaterthan server_var(credits_max)) do
{
es_keysetvalue s_uses event_var(attacker) uses server_var(credits_max)
es_tell event_var(attacker) #green Vos Credits: server_var(credits_max) (Maximum)
}
else do
{
es_keysetvalue s_uses event_var(attacker) uses server_var(s_dtemp)
es_tell event_var(attacker) #green Vos Credits: server_var(s_dtemp) (+ server_var(credits_kill))
}
}
//=========================================
//=========================================
//=========================================
//=========================================
event player_say
{
if (event_var(text) equalto !propmenu) do
{
if (event_var(es_userdead) == 0) do
{
es popup send propmenu1 event_var(userid)
es_xsetinfo s_temp 0
es_keygetvalue s_temp s_uses event_var(userid) uses
es_tell event_var(userid) #green Vos Credits: server_var(s_temp)
}
else do
{
es_tell event_var(userid) Les morts ne peuvent pas spawn des objets.
}
}
if (event_var(text) equalto !propinfo) do
{
es_tell event_var(userid) #green Credits a la Connection: server_var(credits_connect)
es_tell event_var(userid) #green Credits au Spawn: server_var(credits_spawn)
es_tell event_var(userid) #green Credits par Kill: server_var(credits_kill)
es_tell event_var(userid) #green Credits Maximum: server_var(credits_max)
es_tell event_var(userid) #green Version du Script: 1.3 FR
}
}
//=========================================
//=========================================
//=========================================
//=========================================
block propmenupopup
{
popup create propmenu1
popup addline propmenu1 "============"
popup addline propmenu1 "| Acheter Props |"
popup addline propmenu1 "============"
popup addline propmenu1 "->1. Armoire - 5 Credits"
popup addline propmenu1 "->2. Baril - 5 Credits"
popup addline propmenu1 "->3. Machine a laver - 5 Credits"
popup addline propmenu1 "->0. Quitter"
popup submenu propmenu1 1 propmenu1
popup submenu propmenu1 2 propmenu1
popup submenu propmenu1 3 propmenu1
popup select propmenu1 1 fdgspawn/filecabmen
popup select propmenu1 2 fdgspawn/barrelmen
popup select propmenu1 3 fdgspawn/dryermen
//=========================================
//=========================================
//=========================================
//=========================================
}
//=========================================
block filecabmen
{
es_xsetinfo s_temp 0
es_keygetvalue s_temp s_uses server_var(_popup_userid) uses
if (server_var(s_temp) greaterthan 1) do
{
es_prop_physics_create server_var(_popup_userid) props/cs_office/file_cabinet1.mdl
es_math s_temp - 5
es_keysetvalue s_uses server_var(_popup_userid) uses server_var(s_temp)
es_tell server_var(_popup_userid) #green Vos Credits: server_var(s_temp) (-5)
}
else do
{
es_tell server_var(_popup_userid) #green Vos Credits: server_var(s_temp) (pas assez de credit!)
}
}
//=========================================
block barrelmen
{
es_xsetinfo s_temp 0
es_keygetvalue s_temp s_uses server_var(_popup_userid) uses
if (server_var(s_temp) greaterthan 1) do
{
es_prop_physics_create server_var(_popup_userid) props/de_train/Barrel.mdl
es_math s_temp - 5
es_keysetvalue s_uses server_var(_popup_userid) uses server_var(s_temp)
es_tell server_var(_popup_userid) #green Vos Credits: server_var(s_temp) (-5)
}
else do
{
es_tell server_var(_popup_userid) #green Vos Credits: server_var(s_temp) (pas assez de credits!)
}
}
//=========================================
block dryermen
{
es_xsetinfo s_temp 0
es_keygetvalue s_temp s_uses server_var(_popup_userid) uses
if (server_var(s_temp) greaterthan 2) do
{
es_prop_physics_create server_var(_popup_userid) props/cs_militia/dryer.mdl
es_math s_temp - 5
es_keysetvalue s_uses server_var(_popup_userid) uses server_var(s_temp)
es_tell server_var(_popup_userid) #green vos Credits: server_var(s_temp) (-5)
}
else do
{
es_tell server_var(_popup_userid) #green Vos Credits: server_var(s_temp) (pas assez de credits!)
}
}
Installation
Extraire dans le dossier cstrike
Ajouter es_load fdgspawn dans l'autoexec.cfg
Redémarrer le serveur.