helllPP!!! with commands
#1

if i want to make message thats i cant ban my self ingame
i do like this

if(Player[pID][admin]) return SencClientMessage(playerid, COLOR_RED,"You cant ban yourself");
OR
if(playerid == pID) return SendClientMessage(playerid, COLOR_RED,"You cant ban yourself");



what one is right
Reply
#2

I'm guessing:
pawn Код:
if(playerid == pID) return SendClientMessage(playerid, COLOR_RED,"You cant ban yourself");
Because that would compare the player that typed the command to "pID" and send the client message if they are the same.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)