10.02.2011, 18:05
Eu fiz uns cmds de teste de lideres:
/irteste, /ateste, /cteste e /fteste
Mas o /fteste nгo esta fechando, alguem me ajuda?
codigo:
/irteste, /ateste, /cteste e /fteste
Mas o /fteste nгo esta fechando, alguem me ajuda?
codigo:
Code:
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;
}


