hellppp :'(
#1

guys when i do like this think for i cant ban my self


if(Player[playerid][admin]){
return SendClientMessage(playerid,COLOR_RED,"You can`t BAN yourself");
}

should i do pID or playerid and what the diffrent bettwen pID and playerid
Reply
#2

use like this
pawn Код:
if(pID == playerid)
{
     return SendClientMessage(playerid,COLOR_RED,"You can`t BAN yourself");
}
Reply
#3

Hard to say without further information. (cmd system, gamemode, ...)
Normally, playerid is the id of the player who did something. pID could be the target player that should be banned.
So playerid == pID would be banning yourself.
Reply
#4

ok thanks but now what the diffrent bettwe pID and playerid
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)