19.01.2015, 17:48
Hello.
At now if i type /tazer i get silent pistol and if i shoot anyone then it just damage people not taze, but if i hit people with my hand then it taze
COde:
At now if i type /tazer i get silent pistol and if i shoot anyone then it just damage people not taze, but if i hit people with my hand then it taze
COde:
Код:
COMMAND:tazer(playerid, params[]) { new string[128]; if(PlayerLoggedIn[playerid] == true) { if(KasutajaInfo[playerid][Grupeering] == 1 || KasutajaInfo[playerid][Grupeering] == 9) { if(Tazer[playerid] == 0) { Tazer[playerid] = 1; GivePlayerWeapon(playerid, 23, 65500); format(string, sizeof(string), "* %s vхtab vццlt vдlja tazeri",RPN(playerid)); SendEmotion(playerid, string); } else if(Tazer[playerid] == 1) { Tazer[playerid] = 0; SetPlayerAmmo(playerid, 23, 0); format(string, sizeof(string), "* %s paneb tazeri vццle tagasi",RPN(playerid)); SendEmotion(playerid, string); } } else KasutusText(playerid, "~r~VIGA: ~b~Sul ei ole tazerit"); } else KasutusText(playerid, "~r~VIGA: ~b~Sa ei ole veel sisse loginud"); return 1; }