29.08.2014, 16:44
I have tried like this
PHP код:
command(destroycar, playerid, params[])
{
#pragma unused params
if(Player[playerid] [pAdmin] >=1)
{
new vehicleid;
if(sscanf(params,"u",vehicleid)) return SendClientMessage(playerid,COLOR_RED,"[ERROR]/destroy [VehicleID]");
DestroyVehicle(vehicleid);
}
else
{
SendClientMessage(playerid,COLOR_RED, "[SERVER]:You are not allowed to use this command.");
}
return 1;
}