Quote:
Originally Posted by Cнєsρıяıтσ ѓгη
pawn Код:
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; }
|
Deu isso aki xD, e quando digita /admin para ver todos os admins ONLINES, ele fica como se eu tivesse utilizado esse cmd /trabalhar, o.O....
Код:
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.
A LINHA Й ESSA>:
Код:
if(!strcmp(cmdtext, "/trabalhar", true) == 0)