06.10.2016, 02:05
o meu comando esta assim eu queria colocar para o player aceitar ou recusar
CMD:trazertodos(playerid, params[])
{
#pragma unused params
if(Player[playerid][pAdmin] >= 5 || Player[playerid][pFrente] >= 1)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
if(Player[playerid][pFaccoes] == Player[i][pFaccoes])
{
new String[256];
SetPlayerPos(i, X+1, Y+1, Z);
format(String, sizeof(String), "O {FF0000}%s:{FFFFD2} Trouxe Todos da Facзгo ! ", getPName(playerid));
SendClientMessage(i, COR_INFO, String);
}
}
}
}
else
{
SendClientMessage(playerid, COR_ERRO, "Vocк Nгo Tem Permissгo!");
}
return 1;
}
CMD:trazertodos(playerid, params[])
{
#pragma unused params
if(Player[playerid][pAdmin] >= 5 || Player[playerid][pFrente] >= 1)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
if(Player[playerid][pFaccoes] == Player[i][pFaccoes])
{
new String[256];
SetPlayerPos(i, X+1, Y+1, Z);
format(String, sizeof(String), "O {FF0000}%s:{FFFFD2} Trouxe Todos da Facзгo ! ", getPName(playerid));
SendClientMessage(i, COR_INFO, String);
}
}
}
}
else
{
SendClientMessage(playerid, COR_ERRO, "Vocк Nгo Tem Permissгo!");
}
return 1;
}