SA-MP Forums Archive
/drunk - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /drunk (/showthread.php?tid=411166)



/drunk - [LHT]Bally - 27.01.2013

How do i make it that if i type /drunk, And its set on a timer for 2 minutes so after that you go back to normal not drunk

That if im not in a car its fine


But soon as i enter a car and im still drunk it sets player wanted level 4 and says dont drink & drive

pawn Код:
CMD:drunk(playerid, params[])
{
    if (GetPlayerVehicleID(playerid) == 0)
    {
    SetPlayerDrunkLevel (playerid, 3000);
    SendClientMessage(playerid, 0xFFFFFFAA, "Dont Drive Youre Drunk");
    return 1;
}
}