09.11.2013, 15:22
try this and delete the !Isplayerconnected
here is the code
this function is to chec if a player is connected
here is the code
pawn Код:
if(playerid == ID)
{
SendClientMessage(playerid,COLOR_ERROR,"You cannot rob yourself, why would you do that anyway?");
return 1;
}
pawn Код:
if(!IsPlayerConnected(ID) == (ID))
return SendClientMessage(playerid, COLOR_ERROR, "You cannot rob yourself.");