Destroy vehicle cmd, to dcmd [Help please]
#2

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!");
}
}
Reply


Messages In This Thread
Destroy vehicle cmd, to dcmd [Help please] - by Mishima - 27.02.2010, 11:36
Re: Destroy vehicle cmd, to dcmd [Help please] - by LuxurioN™ - 27.02.2010, 11:57
Re: Destroy vehicle cmd, to dcmd [Help please] - by Mishima - 27.02.2010, 12:43

Forum Jump:


Users browsing this thread: 1 Guest(s)