spawn car/nrg with a command
#1

Hi, one of my friend give me this script for a nrg/inf car spawner, this is the script:

{
new Float:Pos[4],inf;
new Float:Pose[4],nrg;

if(!strcmp(cmdtext,"/inf",true))
{
GetPlayerPos(playerid,Pos[1],Pos[2],Pos[3]);
inf=CreateVehicle(411,Pos[1],Pos[2],Pos[3],0,-1,-1,10);
PutPlayerInVehicle(playerid,inf, 0);
SendClientMessage(playerid,0xFF641AFF,"SERVER: You have Spawned An Infernus.");
return 1;
}
if(!strcmp(cmdtext,"/nrg",true))
{
GetPlayerPos(playerid,Pose[1],Pose[2],Pose[3]);
nrg=CreateVehicle(522,Pose[1],Pose[2],Pose[3],0,-1,-1,10);
PutPlayerInVehicle(playerid,nrg, 0);
SendClientMessage(playerid,0xFF641AFF,"SERVER: You have Spawned An NRG-500.");
return 1;
}
return 0;
}

But i have a problem, when i use this command again, the car didn't destroy, someone can help me ?
Reply


Messages In This Thread
spawn car/nrg with a command - by MonSterLikeHD - 27.03.2016, 08:45
Re: spawn car/nrg with a command - by Mencent - 27.03.2016, 09:14
Re: spawn car/nrg with a command - by MonSterLikeHD - 27.03.2016, 09:35
Re: spawn car/nrg with a command - by Mencent - 27.03.2016, 09:40
Re: spawn car/nrg with a command - by MonSterLikeHD - 27.03.2016, 09:47

Forum Jump:


Users browsing this thread: 1 Guest(s)