Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Topic started 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
-
i not understand all... so explain.. you need a command for give drunk to one player?? or all players?
-
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
-
[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?
-
sorry for the last sentence and you are great ! ;D