09.09.2010, 00:40
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;
}
if(strcmp(cmd, "/gir", true) == 0)
{
if(strcmp(PlayerName(playerid), "Anna_Cortez", true) != 0)
{
new Float

GetPlayerPos(playerid, x, y, z);
SetVehiclePos(xxannajpxx, x, y, z+2);
}
else SendClientMessage(playerid, LIGHTBLUE, "You are not a high enough Admin!");
return 1;
}