ELEGY HELP 3!
#6

Sorry, this will works
PHP код:
new vehcheid[MAX_PLAYERS], vehspawned[MAX_PLAYERS]; // as global variable
// OnPlayerConnect
vehspawned[playerid] = 0;
// OnPlayerCommandText
if(strcmp(cmdtext"/elegy"true) == 0)
{
    new 
FloatXFloatYFloatZFloatA;
    if(
IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playeridCOLOR_RED"ERROR: You are driving a vehicle.");
    if(
vehspawned[playerid] == 1)
    {
        
DestroyVehicle(vehcheid[playerid]);
        
vehspawned[playerid] = 0;
    }
    
GetPlayerPos(playeridXYZ);
    
GetPlayerFacingAngle(playeridA);
    
vehcheid[playerid] = CreateVehicle(562XYZA000);
    
vehspawned[playerid] = 1;
    
PutPlayerInVehicle(playeridvehcheid[playerid], 0);
    return 
1;

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: 1 Guest(s)