Help with car command
#1

Hello everyone !!! with this command in my server vip player spawn cars
PHP код:
if (strcmp("/sultan"cmdtexttrue10) == 0)
    {
    if(
GetTickCount() - GetPVarInt(playerid"LastFLASH") < 120000) return SendClientMessage(playerid0xFF0000FF"you need to wait ");
    new 
Float:X,Float:Y,Float:Z,Float:Anglecarid;
    
GetPlayerPos(playerid,X,Y,Z);
    
GetPlayerFacingAngle(playerid,Angle);
    
carid GetPlayerVehicleID(playerid);
    
carid CreateVehicle(560,X,Y,Z,Angle,-1,-1,600);
    
AddVehicleComponent(carid,1029);
    
AddVehicleComponent(carid,1033);
    
AddVehicleComponent(carid,1139);
    
AddVehicleComponent(carid,1010);
    
AddVehicleComponent(carid,1073);
    
ChangeVehiclePaintjob(carid,1);
    
PutPlayerInVehicle(playerid,carid,0);
    
TogglePlayerControllable(playerid,true);
    
SetPVarInt(playerid"LastFLASH"GetTickCount());
    return 
SendClientMessage(playerid0x40FF40FF"sultan has been spawned!");
         }
    return 
1;
    } 
but how i can make if the vehicle didn't drive after 2 minutes to destroy automatically
Reply


Messages In This Thread
Help WITH COMMAND - by boyan96 - 25.09.2011, 17:10
Re: Help with car command - by boyan96 - 25.09.2011, 17:36
Re: Help with car command - by zombieking - 25.09.2011, 17:38
Re: Help with car command - by andrew4699 - 25.09.2011, 17:58
Re: Help with car command - by boyan96 - 25.09.2011, 18:24
Re: Help with car command - by Kingunit - 25.09.2011, 18:27
Re: Help with car command - by boyan96 - 25.09.2011, 18:30
Re: Help with car command - by [MWR]Blood - 25.09.2011, 18:31
Re: Help with car command - by Kingunit - 25.09.2011, 18:32
Re: Help with car command - by boyan96 - 25.09.2011, 18:39

Forum Jump:


Users browsing this thread: 2 Guest(s)