13.12.2011, 22:25
I got problem
when i use /jail allways Player Not Connected how to fix it please help me fast!
pawn Код:
CMD:jail(playerid,params[])
{
new Message[128],id;
if(PlayerInfo[playerid][pAdminLevel] < 4) return SendClientMessage(playerid,COLOR_GREY,"You are not allowed to use this command!");
{
if(sscanf(params, "s[128]", Message))SendClientMessage(playerid, COLOR_WHITE, "[CMD] / [PlayerID/PartOfName]");
{
if(IsPlayerConnected(id))return SendClientMessage(playerid, COLOR_WHITE, "Player Not Connected");
{
new gName[MAX_PLAYER_NAME],string[128];
GetPlayerName(playerid,gName,sizeof gName);
format(string,sizeof string,"You jailed %s",gName);
SendClientMessage(playerid,0x00ff00ff,string);
SendClientMessage(playerid,0xFF0000FF,"You have been jailed by admin.");
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-9.6939,2336.7288,24.3034);
ResetPlayerWeapons(playerid);
}
}
}
return 1;
}