player command - 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: player command (
/showthread.php?tid=175263)
player command -
farris - 09.09.2010
im trying to build a command to work for crtain players this is whati got but it works for everyone
if(strcmp(cmd, "/gir", true) == 0)
{
if(strcmp(PlayerName(playerid), "Anna_Cortez", true) != 0)
{
new Float

, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SetVehiclePos(xxannajpxx, x, y, z+2);
}
else SendClientMessage(playerid, LIGHTBLUE, "You are not a high enough Admin!");
return 1;
}
Re: player command -
iggy1 - 09.09.2010
use
pawn Код:
if(!strcmp(PlayerName(playerid), "Anna_Cortez" ))