Problem with if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT)
#3

Here You Go
pawn Код:
if (strcmp("/re", cmdtext, true, 10) == 0)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            RepairVehicle(GetPlayerVehicleID(playerid));
            SendClientMessage(playerid,0xFF0000FF,"{55FF00}» Success: {FFFFFF}Your Vehicle have been Successfully Fixed.!");
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
        }// Forgot This !
        else
        {
            //if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) You Don't need this
            new Float:pos[4]; [B]/////536 line[/B]
            GetPlayerPos(id,pos[0],pos[1],pos[2]);
            GetPlayerFacingAngle(id,pos[3]);
            new re = CreateVehicle(510, pos[0],pos[1],pos[2],pos[3], -1,-1, 10);
            PutPlayerInVehicle(playerid,re,0);
            return 1;
        }
    }// You Don't put this !
Reply


Messages In This Thread
Problem with if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) - by SpikY_ - 12.07.2015, 11:06
Re: Problem with if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) - by M0HAMMAD - 12.07.2015, 11:22
Re: Problem with if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) - by M0HAMMAD - 12.07.2015, 11:24
Re: Problem with if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) - by SpikY_ - 12.07.2015, 11:35

Forum Jump:


Users browsing this thread: 1 Guest(s)