[DUDA] DrunkLevel - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (
https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: [DUDA] DrunkLevel (
/showthread.php?tid=482043)
[DUDA] DrunkLevel -
ValenRatti - 19.12.2013
Hola, yo conosco esta funcion:
pawn Код:
SetPlayerDrunkLevel(playerid, 30000);
Pero tengo unas dudas. Cual es el maximo? es 30.000? y la otra es: Como agrego drunklevel? Me refiero a, por ejemplo, cada ves que escribe /tomar, el drunk level incremente 1000. SetPlayerDrunkLevel(playerid, +1000) ?
Respuesta: [DUDA] DrunkLevel -
Adoniiz - 19.12.2013
el mбximo es 50000
https://sampwiki.blast.hk/wiki/SetPlayerDrunkLevel
y para lo q pides, puedes crear una variable y esta almacenar cuantas veces has escrito el comando /tomar, sumandolo al final multiplicandolo por cuantas veces quieras
pawn Код:
CMD:tomar(playerid, params[])
{
static cuantas_veces_tome;
new multiplicar = cuantas_veces_tome * 1000;
SetPlayerDrunkLevel(playerid, multiplicar);
cuantas_veces_tome++;
return 1;
}
Re: [DUDA] DrunkLevel -
ValenRatti - 19.12.2013
Muchas gracias! Lo que buscaba