[Pedido]Hospital Spawn
#9

pawn Код:
new EsperandoAmbulancia[MAX_PLAYERS];
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    EsperandoAmbulancia[playerid] = 1;
    if(EsperandoAmbulancia[playerid] == 1)
    {
     new Float:x, Float:y, Float:z;
     GetPlayerPos(playerid, x, y, z);
     SetPlayerPos(playerid, x, y, z);
     TogglePlayerControllable(playerid, 0x0);
     return 1;
    }
    return 1;
}
Tenta algo assim.
E depois faz um if no OnPlayerSpawn

pawn Код:
public OnPlayerSpawn(playerid)
{
  EsperandoAmbulancia[playerid] = 0;
  if(EsperandoAmbulancia[playerid] == 0)
  {
  SetPlayerPos(playerid, x, y, z); // Coloque as cordenadas que o jogador serб transferido apуs ser socorrido
  TogglePlayerControllable(playerid, 0x1);
  return 1;
 }
 return 1;
}
Cуdigo nгo testado.
Reply


Messages In This Thread
[Pedido]Hospital Spawn - by [Dk]TuReTOo - 23.05.2011, 12:31
Re: [Pedido]Hospital Spawn - by Chefгo - 23.05.2011, 13:03
Re: [Pedido]Hospital Spawn - by [Dk]TuReTOo - 23.05.2011, 13:28
Re: [Pedido]Hospital Spawn - by Chefгo - 23.05.2011, 13:30
Re: [Pedido]Hospital Spawn - by [Dk]TuReTOo - 23.05.2011, 13:45
Re: [Pedido]Hospital Spawn - by Macintosh - 23.05.2011, 14:35
Re: [Pedido]Hospital Spawn - by [Dk]TuReTOo - 23.05.2011, 15:16
Re: [Pedido]Hospital Spawn - by deregudegu - 23.05.2011, 15:54
Re: [Pedido]Hospital Spawn - by Macintosh - 23.05.2011, 15:59
Re: [Pedido]Hospital Spawn - by [Dk]TuReTOo - 23.05.2011, 19:55

Forum Jump:


Users browsing this thread: 2 Guest(s)