18.06.2010, 16:13
pawn Код:
if(strcmp(cmd, "/car", true)==0)
{
if(AdminLevel[playerid] == 5))
{
new tmp[128], tmp2[128], tmp3[128];
new Float:x, Float:y, Float:z;
tmp = strtok(cmdtext, idx); tmp2 = strtok(cmdtext, idx); tmp3 = strtok(cmdtext, idx);
GetPlayerPos(playerid, x, y, z);
CreateVehicle(strval(tmp), x+2, y+2, z, 0, strval(tmp2), strval(tmp3), 60);
}
else return SendClientMessage(playerid, red, "Your not high enough level to use this command");
return 1;
}