SA-MP Forums Archive
hellppp :'( - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: hellppp :'( (/showthread.php?tid=183991)



hellppp :'( - [MKD]Max - 17.10.2010

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


Re: hellppp :'( - whitedragon - 17.10.2010

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



Re: hellppp :'( - Mauzen - 17.10.2010

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.


Re: hellppp :'( - [MKD]Max - 17.10.2010

ok thanks but now what the diffrent bettwe pID and playerid