30.12.2017, 22:07
Hello!
I'm have a big problem:
When im type /oplace is repeat message a million times
WTF?
Why?
Message:
Full code:
SCM = SendClientMessage
+1 FOR HELP!
(sorry for my bad english)
I'm have a big problem:
When im type /oplace is repeat message a million times
WTF?
Why?
Message:
Код:
{98AFC7}Evenimentul GIFTBOX a fost pornit de catre admin %s! [/GIFTBOX]
Код:
dcmd_oplace(playerid, params[]) { #pragma unused params if(AccountInfo[playerid][aLevel] <= 9) return SCM(playerid, ERROR, "Trebuie sa fii admin 10 pentru a putea pune un giftbox"); else if(IsPlayerConnected(playerid) == 0) return SCM(playerid, ERROR, "Trebuie sa fii conectat pentru a putea porni giftbox"); else { new Float:x, Float:y, Float:z, Float:a, name[60], stringgb[200]; GetPlayerFacingAngle(playerid, a); GetPlayerName(playerid, name, 60); GetPlayerPos(playerid, Float:x, Float:y, Float:z); CreateObject(19056, x, y, z, 0, 0, 0); GiftStarted = true; Create3DTextLabel("{FFA500}GIFTBOX!\n{00FF00}Scrie /getgift pentru a\n{00FF00}primi un {FF00FF}CADOU!", 0x008080FF, x, y, z, 0, 0, 0); format(stringgb, 200, "{98AFC7}Evenimentul GIFTBOX a fost pornit de catre admin %s! [/GIFTBOX]", name); SendClientMessageToAll(COLOR_LIGHTCYAN, stringgb); for(new i=0; i< MAX_PLAYERS; i++) AccountInfo[i][GiftHours] = 3; } return 1; }
+1 FOR HELP!
(sorry for my bad english)