War System
#1

Hi, I will have a war sistem with commands: /startwar [Lider] and /acceptwar
Detalis of war sistem: When a leader use command /startwar, he ask another Leader if they want to start war. The asked ally need to use /acceptwar for the war begin. Is ok, but it doesn't end and ally don't receive award. If I kill one opponent in the other team, then I look in the /score of how much it is

Pls give me that
Reply
#2

that is not complicated script, you should start learning pawn :P
Reply
#3

Make it By your own self
Its easy
Reply
#4

Quote:
Originally Posted by Phyrunx
Посмотреть сообщение
Make it By your own self
Its easy
Hmm.. i can not.

For me itґs to hard, can you make me the "Filterscript".
Reply
#5

pawn Код:
#include <a_samp>
#include <sscanf2>
#include <zcmd>

main()
{

}

CMD:war(playerid,params[])
{
    new targetid,name[24],targetname[24],stringtwo[128];
    if(sscanf(params,"u",targetid))
    if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,"Player is not online");
   
    GetPlayerName(playerid,name,sizeof(name));
    GetPlayerName(targetid,targetname,sizeof(targetname));
   
    format(stringtwo,sizeof(stringtwo), "Player %s wants to start a war with you.", name);
    ShowPlayerDialog(targetid,0,DIALOG_STYLE_MSGBOX,"War",stringtwo,"Accept","Deny");

    format(stringtwo,sizeof(stringtwo), "War request sent to %s", targetname);
    SendClientMessage(playerid,-1,stringtwo);
    return 1;
}
   
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 0)
    {
        if(response)
        {
            GameTextForPlayer(playerid,"~r~ War Started",2000,4);
            // Your dm stuff or what every you want when the player accepts the war.
        }
       
        if(!response)
        {
            // Whatever you want when the player denys.
        }
    }
    return 1;
}
Should start you off You need ZCMD and sscanf.
Reply
#6

Ok, i have zcmd and sccanf

but what is the command to start/accept the war ?

And works that with /score and kills ?

Help me pls
Reply
#7

Can anyone help me ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)