if(strcmp(cmd, "/ateste", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 4)
{
if(open == true)
{
SendClientMessage(playerid, COLOR_YELLOW, "Jб estб acontecendo um teste!");
return 1;
}else{
open == true;
format(string, sizeof(string), "[RTG] Teste aberto. Use: /irteste para participar!");
SendClientMessageToAll(COLOR_YELLOW,string);
SetPlayerPos(playerid, 1416.107000,0.268620,1000.926000);
SetPlayerInterior(playerid,1);
}
}
}
return 1;
}
if(strcmp(cmd, "/cteste", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 4)
{
if(open == false)
{
SendClientMessage(playerid, COLOR_YELLOW, "Nenhum teste aberto no momento! Use /ateste para abrir um teste");
return 1;
}else{
format(string, sizeof(string), "[RTG] Teste ainda estб aberto. Use: /irteste para participar!");
SendClientMessageToAll(COLOR_YELLOW,string);
}
}
}
return 1;
}
if(strcmp(cmd, "/fteste", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 4)
{
if(open == true)
{
SendClientMessage(playerid, COLOR_YELLOW, "Nenhum teste aberto no momento! Use /ateste para abrir um teste");
return 1;
}else{
open = false;
format(string, sizeof(string), "[RTG] Teste fechado. Se vocк nгo partiipou, espere a prуxima oportunidade!");
SendClientMessageToAll(COLOR_YELLOW,string);
}
}
}
return 1;
}
if(strcmp(cmd, "/irteste",true) == 0)
{
if(open == true)
{
SendClientMessage(playerid, COLOR_YELLOW, "Nгo tem nenhum teste aberto no momento!");
return 1;
}else{
SetPlayerPos(playerid, 1416.107000,0.268620,1000.926000);
SetPlayerInterior(playerid,1);
}
return 1;
}
if(strcmp(cmd, "/irteste",true) == 0)
{
if(open == true)
{
SendClientMessage(playerid, COLOR_YELLOW, "Nгo tem nenhum teste aberto no momento!");
return 0;
}
SetPlayerPos(playerid, 1416.107000,0.268620,1000.926000);
SetPlayerInterior(playerid,1);
}
return 1;
}
if(!strcmp(cmdtext,"/souadmin", true))
{
if(!IsPlayerAdmin(playerid)) return 0; // Caso ele nгo for admin (!) ele returna a 0, isto й, nгo continua o comando.
// Caso ele for Adminstrador no Rcon ele continua o comando.
return 1;
}
if(strcmp(cmdtext, "/irteste",true) == 0)
{
if(open == true)
{
SendClientMessage(playerid, COLOR_YELLOW, "Nгo tem nenhum teste aberto no momento!");
return 0;
}
SetPlayerPos(playerid, 1416.107000,0.268620,1000.926000);
SetPlayerInterior(playerid,1);
}
return 1;
}
if(strcmp(cmdtext, "/irteste",true) == 0)
{
if(open == true)
{
SendClientMessage(playerid, COLOR_YELLOW, "Nгo tem nenhum teste aberto no momento!");
return 0;
}
SetPlayerPos(playerid, 1416.107000,0.268620,1000.926000);
SetPlayerInterior(playerid,1);
return 1;
}
|
Olha as chaves seu emo ~.~'
pawn Code:
|