26.11.2012, 10:58
When I type other playerId. It always slaps id 0. Sometimes it shows that 461 ID not connected to the server when I type a reason long than 5 letters or 7.. ? Can someone help me what's wrong in this script?
Ok guys, There's a error with every fucking command!
When I type a playerid who is not even connected to the server example : 4.
It shows "Playerid (66553) is not connected to the server"
I am using SFCRRPG Gamemode!!
Please help me! How to fix it!
Ok guys, There's a error with every fucking command!
When I type a playerid who is not even connected to the server example : 4.
It shows "Playerid (66553) is not connected to the server"
I am using SFCRRPG Gamemode!!
Please help me! How to fix it!
Код:
CMD:slap(playerid,params[]) { if(AdminLevel[playerid] <= 2) return SendClientMessage(playerid,COLOR_ERROR,"You don't have access to this command"); new ID, cmdreason, string[126], Float: PPos[3]; if(sscanf(params,"us[100]",ID,cmdreason)) { SendClientMessage(playerid,COLOR_ERROR,"USAGE: /slap [playerid] [Reason]"); return 1; } if(IsSpawned[ID] != 1) { format(string,sizeof(string),"%s(%d) must be alive and spawned in order to slap him",PlayerName(ID),ID); SendClientMessage(playerid,COLOR_ERROR,string); return 1; } GetPlayerPos(ID, PPos[0], PPos[1], PPos[2]); SetPlayerPos(ID, PPos[0], PPos[1], PPos[2]+4); format(string,sizeof(string),"[ADMIN] %s(%d) has slapped %s(%d)",PlayerName(playerid),playerid,PlayerName(ID),ID); SendClientMessageToAll(COLOR_ADMIN,string); GameTextForPlayer(ID,"Slapped!", 3000, 1); return 1; }