if (strcmp("/trabalharadm", cmdtext, true, 10) == 0) { if (PlayerInfo[playerid][pAdmin] >= 1) { if (PlayerInfo[playerid][pAdmTrab] = 0) { new String[100], aname[24]; GetPlayerName(playerid, aname, 24); format(String, sizeof(aname), "O Administrador %s estб trabalhando", aname); SendClientMessageToAll(0xCB34CBAA, aname); PlayerInfo[playerid][pAdmTrab] = 1; return 1; } if (PlayerInfo[playerid][pAdmTrab] = 1) { new String[100], aname[24]; GetPlayerName(playerid, aname, 24); format(String, sizeof(aname), "O Administrador %s estб jogando", aname); SendClientMessageToAll(0xCB34CBAA, aname ); PlayerInfo[playerid][pAdmTrab] = 0; return 1; } }
SendClientMessageToAll(0xCB34CBAA, String);
else
if (strcmp("/trabalharadm", cmdtext, true, 10) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 1)
{
PlayerInfo[playerid][pAdminTrab] = !PlayerInfo[playerid][pAdminTrab];
new String[100], aname[24];
GetPlayerName(playerid, aname, 24);
format(String, sizeof(String), "O Administrador %s estб %s", aname, PlayerInfo[playerid][pAdmTrab] ? ("Trabalhando") : ("Jogando"));
SendClientMessageToAll(0xCB34CBAA, String);
return 1;
}
}
pawn Код:
pawn Код:
|
Nгo aparece a frase toda, tentei aumentar o valor da string e nгo mudou |
format(String, sizeof(aname), "O Administrador %s estб trabalhando", aname);
format(String, sizeof(String), "O Administrador %s estб trabalhando", aname);