09.06.2011, 14:54
PHP код:
new cmd[256];
if(strcmp(cmd, "/getcar", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED, "ERROR: you are not admin");
new idx;
new id[1000];
id = strtok(cmdtext,idx);
if(strlen(id)) return SendClientMessage(playerid,COLOR_RED,"USAGE: /getcar [carid]");
new Float:x, Float:y, Float:z, Float:Angel;
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, Angel);
CreateVehicle(strval(id), x, y, z, Angel, 0, 0, 0);
return 1;
}
}
return 0;
}
no error + no work.... please help