[Pedido] Morrer e ficar no mesmo canto
#3

Quote:
Originally Posted by _SysTeM_OFF
Посмотреть сообщение
Canto? No Mesmo Lugar?

Caso for.

Use:

https://sampwiki.blast.hk/wiki/GetPlayerPos

E Armazene em uma Variavel. e Quando spawnar Sete-as.
pawn Код:
//Topo do GM
new Float:MorreuX, Float:MorreuY, Float:MorreuZ

//Nas publics
public OnPlayerDeath(playerid, killerid, reason)
{
    GetPlayerPos(playerid, MorreuX, MorreuY, MorreuZ);
    playerinfo[playerid][pMorto] = 1;
    SpawnPlayer(playerid);
    return 1;
}

public OnPlayerSpawn(playerid)
{
    SetPlayerColor(playerid, -1);
    if(playerinfo[playerid][pMorto] == 1)
    {
      SetPlayerPos(playerid, MorreuX, MorreuY, MorreuZ);
      return 1;
    }
    return 1;
}
Mesmo assim ele nгo da spawn na posiзгo onde morreu ;S
Reply


Messages In This Thread
Morrer e ficar no mesmo canto - by willttoonn - 05.10.2013, 02:17
Respuesta: Morrer e ficar no mesmo canto - by SeV_ - 05.10.2013, 02:19
Re: Respuesta: Morrer e ficar no mesmo canto - by willttoonn - 05.10.2013, 02:27
Re: Morrer e ficar no mesmo canto - by Juniiro3 - 05.10.2013, 02:49
Re: Morrer e ficar no mesmo canto - by willttoonn - 05.10.2013, 02:55
Re: Morrer e ficar no mesmo canto - by willttoonn - 05.10.2013, 03:17
Re: Morrer e ficar no mesmo canto - by willttoonn - 05.10.2013, 03:58
Respuesta: Morrer e ficar no mesmo canto - by costadd - 05.10.2013, 13:45
Re: Morrer e ficar no mesmo canto - by Sellen - 05.10.2013, 14:08

Forum Jump:


Users browsing this thread: 1 Guest(s)