09.06.2010, 23:25
[pawn]
if(strcmp(cmd, "/profadmin", true) == 0 || strcmp(cmd, "/pf", true) == 0 || strcmp(cmd, "/trabalha", true) == 0 || strcmp(cmd, "/tb", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
if(admtrampando[playerid] > 0)
{
admtrampando[playerid] = 0;
GetPlayerName(playerid,sendername,sizeof(sendernam e));
SendClientMessageToAll(COLOR_LIGHTBLUE, "|___________ Aviso da Administraзгo ___________|");
format(string, 256, "Admin: %s ID(%d) estб Jogando, Digite /admins para mais informaзхes.",sendername, playerid);
SendClientMessageToAll(COLOR_LIGHTBLUE, string);
KillTimer(TempoAdministrador);
SetPlayerToTeamColor(playerid);
ResetPlayerWeapons(playerid);
SetPlayerHealth(playerid,100);
}
else
{
admtrampando[playerid] = 1;
GetPlayerName(playerid,sendername,sizeof(sendernam e));
SendClientMessageToAll(COLOR_LIGHTBLUE, "|___________ Aviso da Administraзгo ___________|");
format(string, 256, "Admin: %s ID(%d) estб Trabalhando, Digite /admins para mais informaзхes.",sendername, playerid);
SendClientMessageToAll(COLOR_LIGHTBLUE, string);
SetPlayerToTeamColor(playerid);
TempoAdministrador = SetTimerEx("Administrador", 1000, 1, "i", playerid);
}
}
return 1;
}
[pawn/]
No fim do GM
[pawn]
public Administrador(playerid)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] > 0)
{
if(admtrampando[playerid] > 0)
{
ResetPlayerWeapons(playerid); // REtirar as armas do gm
SetPlayerHealth(playerid,9999); // ficara com life infinito
return 1;
}
return 1;
}
return 1;
}
return 1;
}
[pawn/]
tente agora
if(strcmp(cmd, "/profadmin", true) == 0 || strcmp(cmd, "/pf", true) == 0 || strcmp(cmd, "/trabalha", true) == 0 || strcmp(cmd, "/tb", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
if(admtrampando[playerid] > 0)
{
admtrampando[playerid] = 0;
GetPlayerName(playerid,sendername,sizeof(sendernam e));
SendClientMessageToAll(COLOR_LIGHTBLUE, "|___________ Aviso da Administraзгo ___________|");
format(string, 256, "Admin: %s ID(%d) estб Jogando, Digite /admins para mais informaзхes.",sendername, playerid);
SendClientMessageToAll(COLOR_LIGHTBLUE, string);
KillTimer(TempoAdministrador);
SetPlayerToTeamColor(playerid);
ResetPlayerWeapons(playerid);
SetPlayerHealth(playerid,100);
}
else
{
admtrampando[playerid] = 1;
GetPlayerName(playerid,sendername,sizeof(sendernam e));
SendClientMessageToAll(COLOR_LIGHTBLUE, "|___________ Aviso da Administraзгo ___________|");
format(string, 256, "Admin: %s ID(%d) estб Trabalhando, Digite /admins para mais informaзхes.",sendername, playerid);
SendClientMessageToAll(COLOR_LIGHTBLUE, string);
SetPlayerToTeamColor(playerid);
TempoAdministrador = SetTimerEx("Administrador", 1000, 1, "i", playerid);
}
}
return 1;
}
[pawn/]
No fim do GM
[pawn]
public Administrador(playerid)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] > 0)
{
if(admtrampando[playerid] > 0)
{
ResetPlayerWeapons(playerid); // REtirar as armas do gm
SetPlayerHealth(playerid,9999); // ficara com life infinito
return 1;
}
return 1;
}
return 1;
}
return 1;
}
[pawn/]
tente agora