Jump to content

SherKan

Membru
  • Posts

    122
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by SherKan

  1. incearca sa faci ceva de genu

    new gunname;
     	if(sscanf(params, "i", gunname)) {
            SendClientMessage(playerid, COLOR_GREY, "Syntax:{FFFFFF} /setorder Arma");
            SendClientMessage(playerid, COLOR_WHITE, "Available names: Deagle(1), M4(2).");
            return 1;
        }
        if(gunname == 1) ShowPlayerDialog(playerid, DIALOG_DEAGLE,DIALOG_STYLE_INPUT, "Arma deagle","Scrie numarul de glooante(Nrx40gloante)","Ok","Close");
        else etc..
      ..

     

  2. comanda gasita intr-un gm mai vechi, poate iti este de folos cumva

    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] >= 7)
    			{
    			    if(IsPlayerConnected(playa))
    			    {
    			        if(playa != INVALID_PLAYER_ID)
    			        {
    			            //ConsumingMoney[playa] = 1;
    						GivePlayerCash(playa, money);
    						GetPlayerName(playa, giveplayer, sizeof(giveplayer));
    						GetPlayerName(playerid, sendername, sizeof(sendername));
    						format(string, 256, "AdmWarning: %s has admin-given %s $%d.", sendername,giveplayer,money);
    						ABroadCast(COLOR_LIGHTRED,string,1);
    					}
    				}
    			}
    			else
    			{
    				SendClientMessage(playerid, COLOR_GRAD1, "   nu esti autorizat sa folosesti aceasta comanda!");
    			}
    		}
    		return 1;
    	}

     

×
×
  • 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.