Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: [Akatsuki]Itachi on June 21, 2013, 11:55:43 am

Title: Drunk ?
Post by: [Akatsuki]Itachi on June 21, 2013, 11:55:43 am
Who can give me a whole script of SetPlayerDrunk . Because I don't know how to set a command that can type player id. Who can help me ? Thank you !  ;D
Title: Re: Drunk ?
Post by: aledark24 on June 22, 2013, 03:25:17 am
i not understand all... so explain.. you need a command for give drunk to one player?? or all players?
Title: Re: Drunk ?
Post by: [Akatsuki]Itachi on June 22, 2013, 03:40:28 am
commands and all player(if can) , you are a good at script, I hope you can do one for all (other people can't)  :P
Title: Re: Drunk ?
Post by: Doom on June 22, 2013, 06:40:00 am
[pawn]if( cmd == "drunk" )
{
SetPlayerDrunk(playerid,100,100);
}
[/pawn]

that will make the player drunk who type /c drunk.

[pawn]if( cmd == "drunkall" )
{
for (new playerid = 0; playerid < MAX_PLAYERS; playerid++)
   {
        if ( IsPlayerConnected(playerid) )
      {
         SetPlayerDrunk(playerid, 100, 100);
      }
   }
[/pawn]

That command will drunk all players when anyone types /c drunkall, maybe you can understand how to use the function now.

        playerid The ID of player


        visuals The visuals effects of player.


        handling The handling effect of player.


other people can't  :P

o'rly?
Title: Re: Drunk ?
Post by: [Akatsuki]Itachi on June 22, 2013, 07:57:38 am
sorry for the last sentence and you are great !  ;D