[Ajuda] Quando morre ;/
#2

Seu erro estб quando a pessoa morre.

OnPlayerDeath й uma public que nao aceita SetPos.

Use assim:

pawn Код:
// Topo GM

new Hospital[MAX_PLAYERS];

public OnPlayerDeath(playerid)
{
     Hospital[playerid] = 1;
     return 1;
}

public OnPlayerSpawn(playerid)
{
     if(Hospital[playerid] == 1)
     {
          SetPlayerPos(playerid,-319.1352,1050.3922,20.3403);
          SendClientMessage(playerid, 0xFFFFFFAA,"Vocк veio ao Hospital, isso lhe custou 200$.");
          GivePlayerMoney(playerid,-200);
          GameTextForPlayer(playerid, "~g~$~r~-200", 3000, 6);
          Hospital[playerid] = 0;
     }
     return 1;
}
Reply


Messages In This Thread
Quando morre ;/ - by clerISoN - 28.05.2013, 00:39
Re: Quando morre ;/ - by BielCOP - 28.05.2013, 01:03
Re: Quando morre ;/ - by clerISoN - 28.05.2013, 01:17
Re: Quando morre ;/ - by -Rafinha_FusioN- - 28.05.2013, 01:58
Re: Quando morre ;/ - by clerISoN - 28.05.2013, 02:48
Re: Quando morre ;/ - by -Rafinha_FusioN- - 28.05.2013, 03:20
Re: Quando morre ;/ - by clerISoN - 28.05.2013, 03:32

Forum Jump:


Users browsing this thread: 1 Guest(s)