/bike command
#3

pawn Код:
if(strcmp(cmdtext, "/nrg", true)==0)
{
if(IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, COLOR_RED, "[ERROR]: You already have a Vehicle.");
}
else
{
new Float:X,Float:Y,Float:Z,Float:Angle,VehicleID; GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle);
VehicleID = CreateVehicle(522,X,Y,Z,Angle,1,-1,-1);
PutPlayerInVehicle(playerid,VehicleID,0);
SetVehicleVirtualWorld(VehicleID, GetPlayerVirtualWorld(playerid));
LinkVehicleToInterior(VehicleID, GetPlayerInterior(playerid));
}
return 1;
}

Damn, you posted first again. ^_^
But this time our posts looks a bit different.

EDIT: If you want a NRG-500, this should be your command.
Reply


Messages In This Thread
/bike command - by sggassasin - 30.06.2009, 09:23
Re: /bike command - by Grim_ - 30.06.2009, 09:26
Re: /bike command - by refshal - 30.06.2009, 09:28
Re: /bike command - by sggassasin - 30.06.2009, 09:32
Re: /bike command - by Abernethy - 30.06.2009, 09:33
Re: /bike command - by Grim_ - 30.06.2009, 09:34
Re: /bike command - by sggassasin - 30.06.2009, 09:34
Re: /bike command - by refshal - 30.06.2009, 09:35
Re: /bike command - by Grim_ - 30.06.2009, 09:37
Re: /bike command - by Abernethy - 30.06.2009, 09:38

Forum Jump:


Users browsing this thread: 1 Guest(s)