+1 for help,repeat sendclientmessage
#2

Код:
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;
}
I guess the braces with for loop should help. Anyway, I cleaned the code a little.
Reply


Messages In This Thread
+1 for help,repeat sendclientmessage - by Longover - 30.12.2017, 22:07
Re: +1 for help,repeat sendclientmessage - by Ritzy2K - 30.12.2017, 22:36

Forum Jump:


Users browsing this thread: 1 Guest(s)