21.08.2011, 12:45
Quote:
PHP Code:
|
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(playerid, params[], 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(playerid, 24, 50); }
if(gRank[playerid] == 2) { GivePlayerWeapon(playerid, 38, 50); }
}
return 1;
}