[AJUDA]Como criar o comandos /IrEvento
#4

u_u

Код:
//////////////////// TOPO ////////////////////////////
new running[MAX_PLAYERS];
new Float:x,Float:y,Float;z;
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
   if(strcmp("/evento",cmdtext,true,10) == 0) // Criar evento
{
   for(new i = 0; i < MAX_PLAYERS; i++)
   {
      if(running[i] == 0)
      {
          SendClientMessageToAll(0x33CCFFAA, "Evento iniciado. Use /irevento para ir");
          GetPlayerPos(playerid, x, y, z);
       }
    }
  return 1;
}
}

if(strcmp("/irevento",cmdtext,true,10) == 0)
{
   for(new i = 0; i < MAX_PLAYERS; i++)
   {
      if(running[i] == 1)
      {
          SetPlayerPos(playerid, x, y, z);
      }
    }
return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)