#include
#include
#define CIVIL 0
#define JizzyCars 1
new gTeam[MAX_PLAYERS];
public OnPlayerSpawn(playerid)
{
gTeam[playerid] = CIVIL;
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
gTeam[playerid] = CIVIL;
return 1;
}
CMD:szerelo(playerid, params[])
{
if(gTeam[playerid] == CIVIL){
gTeam[playerid] = JizzyCars;
SendClientMessage(playerid, 0xFF0000AA, \"Munkába léptél!\");
}else SendClientMessage(playerid, 0xFF0000AA, \"Már munkába vagy\");
return 1;
}
CMD:szerel(playerid, params[])
{
if(gTeam[playerid] == JizzyCars){
//ide ird be hogy mit csináljon a parancs
}else SendClientMessage(playerid, 0xFF0000AA, \"HIBA: Nem vagy JizzY\'s Cars tagja.\");
return 1;
}