[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
o'rly?