Jump to content

stefanel994

Membru
  • Posts

    113
  • Joined

  • Last visited

    Never

Posts posted by stefanel994

  1. 	if(strcmp(cmd, "/givemoney", true) == 0)
    	{
    	    if(IsPlayerConnected(playerid))
    	    {
    			tmp = strtok(cmdtext, idx);
    			if(!strlen(tmp))
    			{
    				SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /givemoney [playerid/PartOfName] [money]");
    				return 1;
    			}
    			new playa;
    			new money;
    			playa = ReturnUser(tmp);
    			tmp = strtok(cmdtext, idx);
    			money = strval(tmp);
    			if (PlayerInfo[playerid][pAdmin] >= 4)
    			{
    			    if(IsPlayerConnected(playa))
    			    {
    			        if(playa != INVALID_PLAYER_ID)
    			        {
    			            ConsumingMoney[playa] = 1;
    						GivePlayerMoney(playa, money);
    					}
    				}
    			}
    			else
    			{
    				SendClientMessage(playerid, COLOR_GRAD1, "   you are not authorized to use that command!");
    			}
    		}
    		return 1;
    	}

    LA restu e prea mult de munca asta o gasesti in multe Gamemoduri.

  2. Ai gresit in el ceva

    	if(weekday == 1){TextDrawSetString(Zile,"Marti");}
    	if(weekday == 2){TextDrawSetString(Zile,"Miercuri");}
    	if(weekday == 3){TextDrawSetString(Zile,"Joi");}
    	if(weekday == 4){TextDrawSetString(Zile,"Vineri");}
    	if(weekday == 5){TextDrawSetString(Zile,"Sambata");}
    	if(weekday == 6){TextDrawSetString(Zile,"Duminica");}
    	if(weekday == 7){TextDrawSetString(Zile,"Luni");}
    Trebuia sa il faci asa
    	if(weekday == 2){TextDrawSetString(Zile,"Marti");}
    	if(weekday == 3){TextDrawSetString(Zile,"Miercuri");}
    	if(weekday == 4){TextDrawSetString(Zile,"Joi");}
    	if(weekday == 5){TextDrawSetString(Zile,"Vineri");}
    	if(weekday == 6){TextDrawSetString(Zile,"Sambata");}
    	if(weekday == 7){TextDrawSetString(Zile,"Duminica");}
    	if(weekday == 1){TextDrawSetString(Zile,"Luni");}

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.