- 0
tigara cand fumezi
-
Similar Content
-
Am o problema cu un battlepass,de ce nu merge comanda /misiuni cand o scriu,tin sa precizez ca script-ul mi l-a facut chatgpt
By cbnmihaita,
- 2 answers
- 320 views
-
Am o problema cu un special quest de iarna,sunt la inceput cu scripting-ul si am o problema,cand intru in raza de checkpoint nu se intampla absolut nimic,stie cineva de ce?
By cbnmihaita,
- 2 answers
- 316 views
-
- 9 replies
- 1,518 views
-
Cum adaug melodie pe timpul logarii? cand se logheaza playerii sa cante o anumita piesa
By Decisivul,
- 2 replies
- 270 views
-
Salut,imi apare asta cand pornesc serverul,dar eu am bagat acolo in server.cfg ce e nevoie,imi puteti spune va rog problema ?
By leoo671,
- 0 replies
- 800 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
impulse81
salut . cand dau /smokecigars nu imi da tigara in mana si cand apas click sa o duca la gura..
asta e comanda:
[pawn]if(!strcmp(cmdtext, "/smokecigars", true))
{
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " You need to login first !");
return 1;
}
if(IsSmoking[playerid] == 0)
{
if(PlayerInfo[playerid][pLighter] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " Nu ai Bricheta! Intoarcete la un magazin si cumapara-ti! ! ");
return 1;
}
if(PlayerInfo[playerid][pCigarettes] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " Nu ai tigari! ");
return 1;
}
new randsmoke = random(2)+1;
if(randsmoke == 1)
{
PlayerInfo[playerid][pLighter] -= 1;
PlayerInfo[playerid][pCigarettes] -= 1;
PlayerInfo[playerid][pDependent] += 1;
if(PlayerInfo[playerid][pSex] == 1) { format(string, sizeof(string), " %s scoate bricheta si isi aprinde tigara!.", sendername); }
else { format(string, sizeof(string), "* %s takes out her lighter and cigarette and lights it up.", sendername); }
ProxDetector(30.0, playerid, string, COLOR_RED,COLOR_RED,COLOR_RED,COLOR_YELLOW,COLOR_RED);
IsSmoking[playerid] = 60;
SendClientMessage(playerid, COLOR_WHITE, "Poti sa o arunci Apasand 'F' or 'Enter' !");
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_SMOKE_CIGGY);
}
else
{
PlayerInfo[playerid][pLighter] -= 1;
if(PlayerInfo[playerid][pSex] == 1) { format(string, sizeof(string), "* %s a scos bricheta si a incercat sa aprinda tigara ,dar nu a reusit!.", sendername); }
else { format(string, sizeof(string), "* %s a scos bricheta si a incercat sa aprinda tigara ,dar nu a reusit!.", sendername); }
ProxDetector(30.0, playerid, string, COLOR_RED,COLOR_RED,COLOR_RED,COLOR_YELLOW,COLOR_RED);
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Deja fumezi! ");
return 1;
}
}
return 1;
}[/pawn]
3 answers to this question
Recommended Posts