29.05.2012, 17:42
I made an admin car.
how do I destroy it after exit?
Thanks
how do I destroy it after exit?
pawn Код:
CMD:acar(playerid, params[])
{
if(AdminLevel[playerid] < 2)
return SendClientMessage( playerid, COLOR_RED, "You do not have permission to use that command!" );
if(AdminLevel[playerid] >= 2)
return SendClientMessage( playerid, COLOR_RED, "[SERVER] You have spawned an admin car" );
new Float:x, Float:y, Float:z, Float:angle;
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, angle);
new veh = CreateVehicle(415, x, y, z, angle, 0, 0, 60);
PutPlayerInVehicle(playerid, veh, 0);
ChangeVehicleColor(429, 1, 1);
return 1;
}