ELEGY HELP 3!
#2

Try this:
PHP код:
if(strcmp(cmdtext"/elegy"true) == 0)
{
    new 
FloatXFloatYFloatZFloatA;
    new 
vehicleid[MAX_PLAYERS], vehspawned[MAX_PLAYERS];
    if(
IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playeridCOLOR_RED"ERROR: You are driving a vehicle.");
    if(
vehspawned[playerid] == 1)
    {
        
DestroyVehicle(vehicleid[playerid]);
        
vehspawned[playerid] = 0;
    }
    
GetPlayerPos(playeridXYZ);
    
GetPlayerFacingAngle(playeridA);
    
vehicleid[playerid] = CreateVehicle(562XYZA000);
    
vehspawned[playerid] = 1;
    
PutPlayerInVehicle(playeridvehicleid[playerid], 0);
    return 
1;

Edit: I forgot this.
Reply


Messages In This Thread
ELEGY HELP 3! - by necrobg3 - 20.08.2012, 10:23
Re: ELEGY HELP 3! - by AliveBG - 20.08.2012, 10:47
Re: ELEGY HELP 3! - by milanosie - 20.08.2012, 10:48
Re: ELEGY HELP 3! - by necrobg3 - 20.08.2012, 19:58
Re: ELEGY HELP 3! - by necrobg3 - 20.08.2012, 23:25
Re: ELEGY HELP 3! - by AliveBG - 21.08.2012, 00:30
Re: ELEGY HELP 3! - by necrobg3 - 21.08.2012, 09:22

Forum Jump:


Users browsing this thread: 2 Guest(s)