26.11.2012, 15:07
pawn Код:
if(strcmp(cmd, "/recovercar", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /recovercar [VehID]");
new vehicleid = strval(tmp);
if(PlayerInfo[playerid][pAdmin] >= 5)
{
SetVehicleToRespawn(vehicleid);
SetVehicleVirtualWorld(vehicleid, 0);
SendClientMessage(playerid, COLOR_GREY, "* Vehicle respawned, in VirtualWorld 0.");
}
return 1;
}