12.06.2011, 22:22
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/carid", true) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{`
new str[64];
format(str, 64, "ID do veiculo: %d.",GetPlayerVehicleID(playerid));
SendClientMessage(playerid, -1, str);
}
else return SendClientMessage(playerid, -1, "Vocк nгo estб em nenhum veiculo.");
}
return 0;
}