08.10.2012, 16:54
Code:
Whenever I go up to a player and do it, it just freezes me and says I have froze myself, any help on this?
Quote:
if(newkeys & KEY_FIRE) { new string[128], giveplayerid; if(GotTazer[playerid] == 1 && arrFaction[playerid][p_iMember] > 0) { if(IsPlayerConnected(giveplayerid)) { if(ProxDetectorS(3.0, playerid,giveplayerid)) { if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_WHITE, "You cannot stun yourself, you must get closer to your victim!"); } TogglePlayerControllable(giveplayerid, 0); format(string, sizeof(string), "*%s stuns %s with the tazer.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE); return 1; } } } } |