[HELP] Please help me +REP1 !
#1

Hello guys ..

I will ask !
When the players on Vehicle, how to make the players cant shoot ?

Help me for get +REP1 !
Thanks ..
Reply
#2

Use SetPlayerArmedWeapon(playerid, 0);

You can use it in the public OnPlayerStateChange.
Reply
#3

Quote:
Originally Posted by offon
Посмотреть сообщение
Use SetPlayerArmedWeapon(playerid, 0);

You can use it in the public OnPlayerStateChange.
Example ?
Reply
#4

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER || PLAYER_STATE_PASSENGER) // Player entered a vehicle as a driver or as a passenger.
    {
        SetPlayerArmedWeapon(playerid, 0);
    }
    return 1;
}
Reply
#5

Quote:
Originally Posted by newbie scripter
Посмотреть сообщение
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER || PLAYER_STATE_PASSENGER) // Player entered a vehicle as a driver or as a passenger.
    {
        SetPlayerArmedWeapon(playerid, 0);
    }
    return 1;
}
Works !!
Thanks

+REP1
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)