[ajuda] ajuda Yo
#2

PHP Code:
new V[MAX_PLAYERS];
public 
OnPlayerStateChange(playerid,newstate,oldstate)
{
    if(
oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_PASSENGER)
    {
        if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 437)
        {
            
SetPlayerPos(playerid1.629832.46081199.5938);
            
SetPlayerFacingAngle(playerid181.1296);
            
V[playerid] = GetPlayerVehicleID(playerid);
            return 
1;
        }
        return 
1;
    }
}
public 
OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    if(
newkeys == KEY_SECONDARY_ATTACK)
    {
        if(
IsPlayerInRangeOfPoint(playerid3.02.935622.92911199.5938
        
if(V[playerid] >= 0)
        {
            new 
Float:Pos[3];
            
GetVehiclePos(V[playerid], Pos[0], Pos[1], Pos[2]);
            
SetPlayerPos(playeridPos[0]+4Pos[1], Pos[2]);
            
V[playerid] = -1;
        }
        else { 
SpawnPlayer(playerid); }
        return 
1;
    }
    return 
1;

Reply


Messages In This Thread
[ajuda] ajuda Yo - by Andrew_Guiga - 15.06.2011, 03:35
Re: [ajuda] ajuda Yo - by Shadoww5 - 15.06.2011, 15:17
Re: [ajuda] ajuda Yo - by Ricop522 - 15.06.2011, 15:58
Re: [ajuda] ajuda Yo - by Shadoww5 - 15.06.2011, 16:22
Re: [ajuda] ajuda Yo - by Andrew_Guiga - 15.06.2011, 22:17

Forum Jump:


Users browsing this thread: 2 Guest(s)