pawn Код:
if (strcmp(cmdtext,"/Sairdm",true) != 0 && GetPlayerVirtualWorld(playerid)!= 0)
{
if(!SairDM[playerid])
{
SairDM[playerid] = false; return SendClientMessage(playerid, 0xFFFFFFFF, "{FF4040}[ERRO]: {FFFFFF}Vocк nгo estб em uma Arena DM!");
}
GameTextForPlayer(playerid, "~g~Para Sair Do Dm Use: ~r~/Sairdm", 2500, 5);
return 1;
}
if (strcmp("/Sairdm", cmdtext, true, 10) == 0)
{
SairDM[playerid] = true;
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "{FF0000}%s {1E90FF}Correu de uma das Arenas de DM! {FF0000}( /SairDM )", pname);
SendClientMessageToAll(COLOR_YELLOW, string);
SpawnPlayer(playerid);
return 1;
}