I need /vdel (vehicle delete)
#1

hello guys . iam working on my server..
so i need /vdel or /vremove when u spawn car and u want delete it u type /vdel
or when u type /vdel remove all cars.. :P
thanks....
Reply
#2

pawn Код:
if(!strcmp(cmdtext,"/vremove",true))
{
    if(!IsPlayerInAnyVehicle(playerid)) return 1;
    DestroyVehicle(GetPlayerVehicleID(playerid));
    return 1;
}
if(!strcmp(cmdtext,"/vdel",true))
{
    for(new i = 1;i < MAX_VEHICLES;i++) DestroyVehicle(i);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)