- 0
problema winevent
-
Similar Content
-
- 1 answer
- 243 views
-
- 3 answers
- 359 views
-
- 3 replies
- 410 views
-
- 3 replies
- 75 views
-
- 1 reply
- 356 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
InceMan
Problema intalnita (descriere):cand dau winevent pe un player anume imi zice ca tot eu am castigat si daca am 200000k la mine si eventul e de 5000k imi sterge bani aia care ii am cum ii rezolv bugul
Ero(area / rile) / warning-(ul / urile):nu sunt erori
Liniile de cod / sursa / script-ul(obligatoriu):
CMD:winevent(playerid,params[])
{
if(playerVariables[playerid][pAdminLevel] < 1)
if(sscanf(params,"s",playerid)) return SendClientMessage(playerid,COLOR_RED,"Usage: /eventwin [Player name/ID].");
if(playerid==INVALID_PLAYER_ID) return SendClientMessage(playerid,COLOR_RED,"No such player.");
else
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pname,MAX_PLAYER_NAME);
new str[128];
format(str,128,"{FF9900}%s {CCCCCC}a castigat eventul si a primit {00CC00}$%d!",pname, result,prize);
SendClientMessageToAll(COLOR_GREEN,str);
new string[64];
format(string,64,"You have won the event '%s'!",result);
GameTextForPlayer(playerid,string,5,3000);
GivePlayerMoney(playerid, prize);
}
return 1;
}
Imagini / Video (optional):http://imgur.com/apY4s4K
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