Quote:
Originally Posted by mikeeee
Just change it make it simple
pawn Code:
SetTimer("minigunchecktimer",1,true);
pawn Code:
public minigunchecktimer(playerid) { new weaponid = GetPlayerWeapon(playerid); new pName[MAX_PLAYER_NAME]; new str[128]; if(weaponid == 33) { GetPlayerName(playerid,pName,sizeof(pName)); format(str,sizeof(str),"[HACK]; %s [KICK]: Minigun",pName); SendClientMessageToAll(0xFF0000FF,str); Kick(playerid); } return 1; }
|
Your way is same thing and your will create a massive lag on some script