03.03.2013, 21:27
Pues eso que puse es el comando original no le eh editado nada como soy nuevo en esto de scriptear pues es complicado para mi y eso de las funciones que pedis me podes explicar mejor ? lo busque en el GM y solo tengo esto
y lo del anticheat es esto lo unico que hay en el GM
o me podras ayudar a hacer un nuevo comando ? porfavor
Quote:
|
function TazerTimer(playerid) { if (TazerTimeout[playerid] > 0) { new string[128]; format(string,sizeof(string),"~n~~n~~n~~n~~n~~n~~n ~~n~~r~Recargando Tazer... ~w~%d", TazerTimeout[playerid]); GameTextForPlayer(playerid, string,1500, 3); TazerTimeout[playerid] -= 1; SetTimerEx("TazerTimer",1000,false,"d",playerid); } return 1; } |
Quote:
|
new WeaponNames[47][] = // As below { "puсo","brass knuckles","golf club","nitestick","knife","baseball bat","shovel","palo de billar","katana","chainsaw","purple dildo","small white vibrator","large white vibrator","silver vibrator", "bouquet of flowers","cane","grenade","tear gas grenade","molotov cocktail","jetpack"," "," ","Colt .45","silenced Colt .45","Desert Eagle","12-gauge shotgun","sawn-off shotgun","SPAS-12", "Micro Uzi","MP5","AK-47","M4A1","TEC-9","rifle","sniper rifle","rocket launcher","heatseeker","flamethrower","minigun","s atchel charge","detonator","spray can","fire extinguisher", "camera","nightvision goggles", "thermal goggles","parachute" }; new HasArmor [MAX_PLAYERS]; new Float:ScriptArmor [MAX_PLAYERS]; function SetHP(playerid, Float:hp) { Info[playerid][pHealth] =hp; SetPlayerHealth(playerid, hp); return 1; } function GiveArmorToPlayer(playerid, Float:armour) { SetPlayerArmour(playerid, Float:armour); HasArmor[playerid] = 1; ScriptArmor[playerid] = armour; return 1; } timer Anticheat[1000]() { foreach(Player, i) { if(IsPlayerConnected(i)){ new Float:health, Float:armor; GetPlayerHealth(i, health); if(health > Info[i][pHealth]){ SetPlayerHealth(i, Info[i][pHealth]); } GetPlayerArmour(i, armor); if(armor > ScriptArmor[i]){ GiveArmorToPlayer(i, ScriptArmor[i]); } } } return 1; } |

