help please
#1

i wanna make a score and money giver you get money and score if you are in the aircrafts like shamal
Reply
#2

you mean that when player will enter shamal, they will score and money?
Reply
#3

Please describe it more, I don't understand your language at all... Maybe ****** translate is better?
And why do you post teddy bears? XD
Reply
#4

Quote:
Originally Posted by Medal Of Honor team
Посмотреть сообщение
you mean that when player will enter shamal, they will score and money?
no its available in all aircrafts and when they are inside the plane driving it they will have score and money every 1minute
Reply
#5

Quote:
Originally Posted by gamer_Z
Посмотреть сообщение
Please describe it more, I don't understand your language at all... Maybe ****** translate is better?
And why do you post teddy bears? XD
its my signature Xd
Reply
#6

Note you will need a function to check if the player is in an airplane for this to work. You will need to do something like this,
pawn Код:
#include <a_samp>

AirPay( playerid );

new airTimers[ MAX_PLAYERS ];

public OnPlayerDisconnect(playerid, reason)
{
    KillTimer( airTimers[ playerid ] );//kill timer when they disconnect
    return 1;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if( IsAirPlane ( vehicleid ))//you will need to find/create this function.
        airTimers[ playerid ] = SetTimerEx( "AirPay", 60*1000, true, "i", playerid );//timer to give score/money

    return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
    if(IsInAirPlane( playerid ))//you will need to find/create this function too.
        KillTimer( airTimers[ playerid ] );//kill the timer when they leave
       
    return 1;
}

public AirPay( playerid )
{
    if(IsInAirPlane( playerid ))
    {
        GivePlayerMoney( playerid, 1000);
        SetPlayerScore( playerid, GetPlayerScore( playerid ) +1 );
    }
    else
        KillTimer( airTimers[ playerid ] );
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)