player command
#1

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;
}
Reply
#2

use
pawn Код:
if(!strcmp(PlayerName(playerid), "Anna_Cortez" ))
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)