- 0
Problema GivePlayerMoney
-
Similar Content
-
- 1 answer
- 239 views
-
- 3 answers
- 356 views
-
- 3 replies
- 407 views
-
- 2 replies
- 33 views
-
- 1 reply
- 354 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
InceMan
Problema intalnita (descriere): cand duc servieta imi da bani aia dupa 1 min mi-ea inapoi si nu stiu de-ce
Ero(area / rile) / warning-(ul / urile):nu sunt erori
Liniile de cod / sursa / script-ul(obligatoriu):if(playerid == CashboxOwner)
{
PlayerPlaySound(playerid, 1054, 0, 0, 0);
KillTimer(DropValueTimer);
new str[128], pName[MAX_PLAYER_NAME];
if(mode == 1)
{
DisablePlayerCheckpoint(playerid);
}
CashboxOwner = INVALID_PLAYER_ID;
GetPlayerName(playerid, pName, sizeof(pName));
format(str, 128, "%s (ID: %d) a livrat servieta si a castigat $%d", pName, playerid, CashboxValue);
SendClientMessageToAll(0xFFD700AA, str);
GivePlayerMoney(playerid, CashboxValue);
format(str, 128, "~y~Felicitari! ~n~ Ai castigat ~n~~g~$%d", CashboxValue);
GameTextForPlayer(playerid, str, 4000, 3);
SendClientMessageToAll(0xFFD700AA, "Un nou joc va incepe in 3 minute!");
SetTimer("StartNewCashboxGame", 180000, 0);
IsGameStarted = 0;
if(IsTextdrawCreated == 1)
{
TextDrawDestroy(ValueText);
IsTextdrawCreated = 0;
}
}
Imagini / Video (optional):
Ati incercat sa rezolvati singur?:da
FiveGame Lands
Pawno Developer, Mapping , Scripter
Since 2016
Link to comment
Share on other sites
8 answers to this question
Recommended Posts