Faction un drift server
#5

Quote:
Originally Posted by lucianmemo
View Post
PHP Code:
#define pTeam[MAX_PLAYERS];
#define pRank[MAX_PLAYERS]; 
This is all you need.
After i can add a faction?[/QUOTE]

PHP Code:
#define gTeam     [MAX_PLAYERS];
#define gRank   [MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
    if(
gTeam[playerid] = 0)
    {
        
SendClientMessage(playerid, -1"You are not part of any team!");
    }
    else if(
gTeam[playerid] = 1)
    {
        
SendClientMessage(playerid, -1"You are part of Team 1");
    }
    return 
1;
}
YCMD:getspecialweapon(playeridparams[], help)
{
    
#pragma unused help
    #pragma unused params
    
if(gTeam[playerid] = 0)
    {
        
SendClientMessage(playerid, -1"You don't get a weapon cause your not part of any team!");
    }
    else if(
gTeam[playerid] = 1)
    {
        if(
gRank[playerid] == 1) { GivePlayerWeapon(playerid2450); }
        if(
gRank[playerid] == 2) { GivePlayerWeapon(playerid3850); }
    }
    return 
1;

Couple examples of how it works.
Reply


Messages In This Thread
Faction un drift server - by lucianmemo - 21.08.2011, 12:21
Re: Faction un drift server - by Darnell - 21.08.2011, 12:22
Re: Faction un drift server - by Kush - 21.08.2011, 12:26
Re: Faction un drift server - by lucianmemo - 21.08.2011, 12:32
Re: Faction un drift server - by Kush - 21.08.2011, 12:45

Forum Jump:


Users browsing this thread: 1 Guest(s)