- 0
Ajutor wanted.
-
Similar Content
-
- 0 replies
- 76 views
-
ajutor urgent
By R4zvyy,
- 1 answer
- 360 views
-
- 2 answers
- 139 views
-
- 4 replies
- 111 views
-
- 1 answer
- 134 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
By R4zvyy,
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
Lexu97
Problemă întâlnită (descriere):cum pot adauga la aceste linii ca la payday sa dispara cate 2 wanted,cum dispare efectul drunk,sau cum sa fac sa dispara wanted dupa un anumit timp,de exemplu wanted 1 =5 min, wanted 2 = 10 min.
Ero(area / rile) / warning-(ul / urile):/n/
Liniile de cod / sursa / script-ul:[pawn]public Production()
{
foreach(Player, i)
{
if(PlayerData[pFishes] >= 5)
{
if(FishCount >= 3)
{
new query[MAX_STRING];
PlayerData[pFishes] = 0;
format(query, sizeof(query), "UPDATE players SET Fishes='%d' WHERE id=%d", PlayerData[pFishes], PlayerData[pSQLID]);
mysql_query(query);
}
else
{
FishCount += 1;
}
}
if(PlayerDrunk > 0)
{
PlayerDrunk = 0;
PlayerDrunkTime = 0;
GameTextForPlayer(i, "~p~Efectul alcolemiei~n~~w~S-a dus", 3500, 1);
}
if(PlayerData[pPayDay] < 6)
{
PlayerData[pPayDay] += 1;
new query[MAX_STRING];
format(query, sizeof(query), "UPDATE players SET PayDay='%d' WHERE id=%d", PlayerData[pPayDay], PlayerData[pSQLID]);
mysql_query(query);
} //+ 5 min to PayDay anti-abuse
}
}[/pawn]
Imagini / Video (optional):/n/n
Aţi încercat să rezolvaţi singur?:nu,nu ma pricep.
Care ma ajuta cu asta dau +1 si ii raman dator.
Link to comment
Share on other sites
13 answers to this question
Recommended Posts