WarSys
#1

Guys I am facing one problem.
I am making WarSystem so that fractions can go 1v1. I've made /warcall and commands to set teams and pos to players.
I have problem that I don't know how can I make /warstart command.
I don't have concept how to do it..
I was thinking something with timer and something like "Ready" or smth like that.. Any ideas?
Reply
#2

Quote:
Originally Posted by TopShooter
Посмотреть сообщение
Show me your warcall command to make a /warstart command that would work properly with your /warcall command.
It is on different language.. let me translate it on english..
Reply
#3

Here you go
PHP код:
CMD:warcall(playeridparams[])
{
    if(
PlayerInfo[playerid][pLeader] == 0)
    {
        
GRESKA(playerid"You are not allowed");
        return 
1;
    }
    if(
PlayerInfo[playerid][pLeader] == || PlayerInfo[playerid][pLeader] == 24 || PlayerInfo[playerid][pLeader] == || PlayerInfo[playerid][pLeader] == || PlayerInfo[playerid][pLeader] == || PlayerInfo[playerid][pLeader] == || PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pLeader] == || PlayerInfo[playerid][pLeader] == 18)
    {
        
GRESKA(playerid"You can't be in war");
        return 
1;
    }
    new 
target;
    if(
sscanf(params"u"target))
    {
        
USAGE(playerid"/warcall [ID]");
        
INFO(playerid"Invited must be a leader");
        return 
1;
    }
    if(
IsPlayerConnected(target))
    {
        
GRESKA(playerid"that player is not online");
        return 
1;
    }
    if(
PlayerInfo[target][pLeader] == || PlayerInfo[target][pLeader] == 24 || PlayerInfo[target][pLeader] == || PlayerInfo[target][pLeader] == || PlayerInfo[target][pLeader] == || PlayerInfo[target][pLeader] == || PlayerInfo[target][pLeader] == 10 || PlayerInfo[target][pLeader] == || PlayerInfo[target][pLeader] == 18)
    {
        
GRESKA(playerid"Those can't be in war");
        return 
1;
    }
    if(
target == playerid)
    {
        
GRESKA(playerid"You can't call yourself");
        return 
1;
    }
    if(
PlayerInfo[target][pLeader] == 0)
    {
        
GRESKA(playerid"That player is not leader");
        return 
1;
    }
    if(
WarInvited[target] == 1)
    {
        
GRESKA(playerid"That player has already been invited");
        return 
1;
    }
    if(
PlayerInfo[target][pWarEntered] == 1)
    {
        
GRESKA(playerid"That player is in war");
        return 
1;
    }
    
WarInvited[target] = 1;
    
WarInviter[target] = playerid;
    
PlayerInfo[playerid][pWarEntered] = 1;
    
PlayerInfo[target][pWarEntered] = 1;
    new 
string[128];
    
format(stringsizeof(string), "Player %s has called you in war.\nChoose and option bellow"PlayerName(playerid));
    
ShowPlayerDialog(targetDIALOG_WARINVITEDIALOG_STYLE_MSGBOX"War"string"Accept""Decline");
    return 
1;

Reply
#4

Anyone?
Reply
#5

Guys?
Reply
#6

um, war system like deathmatch? 1 vs 1? then if 1 player death war will be end?
Reply
#7

Quote:
Originally Posted by kloning1
Посмотреть сообщение
um, war system like deathmatch? 1 vs 1? then if 1 player death war will be end?
No. War for RP Server. 5v5
And when 5 minutes expired then it will compare the scores and to see who is better
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)