27.02.2010, 11:57
Try this (Not Tested):
pawn Код:
dcmd_dvec(playerid,params[])
{
if(AccountPL[playerid][KzAdmin] >= 5)
{
if(!strlen(params))
return SendClientMessage(playerid, WHITE, "USAGE: /dvec [ID]");
new obj2id = strval(params);
format(string, sizeof(string), "Vehicle: %d destroyed successfully", obj2id);
SendClientMessage(playerid,GREEN, string);
RemovePlayerFromVehicle(obj2id);
return DestroyVehicle(obj2id);
}
else return SendClientMessage(playerid,RED,"NO!");
}
}