30.12.2017, 22:36
Код:
dcmd_oplace(playerid, params[]) { if(AccountInfo[playerid][aLevel] <= 9) return SCM(playerid, ERROR, "Trebuie sa fii admin 10 pentru a putea pune un giftbox"); if(IsPlayerConnected(playerid) == 0) return SCM(playerid, ERROR, "Trebuie sa fii conectat pentru a putea porni giftbox"); new Float:x, Float:y, Float:z, Float:a, name[26], stringgb[126]; GetPlayerFacingAngle(playerid, Float:a); GetPlayerName(playerid, name, 30); 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; }