if(!strcmp(cmdtext, "/trabalhar", true)) // By Leo { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, " Vocк precisa estar logado !"); return 1; } if(PlayerInfo[playerid][pAdmin] >= 1) { if(AdminDuty[playerid] == 0) { AdminDuty[playerid] = 1; SetPlayerArmour(playerid, 99999); SetPlayerHealth(playerid, 99999); SetPlayerColor(playerid,COLOR_ROSA); SetPlayerSkin(playerid, 217); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "|ADMIN|: [ID:%d]%s entrou no serviзo de admin.", playerid, sendername); ABroadCast(COLOR_ROSA,string,1); if(PlayerInfo[playerid][pAdmin] >= 5001) { } return 1; } else if(AdminDuty[playerid] == 1) { AdminDuty[playerid] = 0; SetPlayerArmour(playerid, 0); SetPlayerHealth(playerid, 100); SetPlayerColor(playerid,TEAM_HIT_COLOR); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "|ADMIN|: [ID:%d]%s saiu do serviзo de admin.", playerid, sendername); ABroadCast(COLOR_ROSA,string,1); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й um admin !"); return 1; } } return 1; }
if(!strcmp(cmdtext, "/trabalhar", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк precisa estar logado !");
return 1;
}
if(PlayerInfo[playerid][pAdmin] >= 1)
{
if(AdminDuty[playerid] == 0)
{
AdminDuty[playerid] = 1;
SetPlayerArmour(playerid, 99999);
SetPlayerHealth(playerid, 99999);
SetPlayerColor(playerid, COLOR_ROSA);
SetPlayerSkin(playerid, 217);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "O admin %s estб trabalhando.", sendername);
SendClientMessageToAll(COLOR_ROSA, string);
return 1;
}
else if(AdminDuty[playerid] == 1)
{
AdminDuty[playerid] = 0;
SetPlayerArmour(playerid, 0);
SetPlayerHealth(playerid, 100);
SetPlayerColor(playerid,TEAM_HIT_COLOR);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "O admin %s estб jogando.", sendername);
SendClientMessageToAll(COLOR_ROSA,string);
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й um admin !");
return 1;
}
}
return 1;
}
pawn Код:
|
C:\Documents and Settings\Pedro\Desktop\GM Novo\Brasil New Life Roleplayer\Brasil New Life Roleplayer\gamemodes\BSL.pwn(43418) : warning 213: tag mismatch Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase Header size: 12956 bytes Code size: 2544300 bytes Data size: 7059860 bytes Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion Total requirements: 9633500 bytes 1 Warning.
if(!strcmp(cmdtext, "/trabalhar", true) == 0)
if (strcmp("/trabalhar", cmdtext, true, 10) == 0)
if (!strcmp(cmdtext, "/trabalhar", true) )
//----------------------------------[ADMLOGADO]------------------------------------------------ if (strcmp("/trabalhar", cmdtext, true, 10) == 0) { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, " Vocк precisa estar logado !"); return 1; } if(PlayerInfo[playerid][pAdmin] >= 1) { if(AdminDuty[playerid] == 0) { AdminDuty[playerid] = 1; SetPlayerArmour(playerid, 99999); SetPlayerHealth(playerid, 99999); SetPlayerColor(playerid, COLOR_ROSA); SetPlayerSkin(playerid, 217); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "%s estб trabalhando como Admin, por favor nгo o atrapalhe!!!", sendername); SendClientMessageToAll(COLOR_ROSA, string); return 1; } else if(AdminDuty[playerid] == 1) { AdminDuty[playerid] = 0; SetPlayerArmour(playerid, 0); SetPlayerHealth(playerid, 100); SetPlayerColor(playerid,TEAM_HIT_COLOR); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "%s estб como player no Brasil Virtual New Life!!!", sendername); SendClientMessageToAll(COLOR_ROSA,string); } } else { SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й um admin !"); return 1; } } return 1; }