Spawn para nomes
#5

Quote:
Originally Posted by Josma_cmd
Посмотреть сообщение
pawn Код:
public OnPlayerSpawn(playerid)
{
    new nome[MAX_PLAYER_NAME];
    GetPlayerName(playerid, nome, sizeof(nome));
    if(strfind(nome, "[FAB]", true) == 0)
    {
        SetPlayerPos(playerid, X, Y, Z);
        return 1;
    }
    else if(strfind(nome, "[PM]", true) == 0)
    {
        SetPlayerPos(playerid, X, Y, Z);
        return 1;
    }
    else if(strfind(nome, "[PF]", true) == 0)
    {
        SetPlayerPos(playerid, X, Y, Z);
        return 1;
    }
    return 1;
}
Coloca as coords de onde quer que nascam no lugar de X, Y, Z.
PHP код:
public OnPlayerSpawn(playerid)
{
    new 
nome[MAX_PLAYER_NAME];
    
GetPlayerName(playeridnomesizeof(nome));
    if(
strfind(nome"[FAB]"true) != -1)
    {
        
SetPlayerPos(playeridXYZ);
        return 
0x01;
    }
    else if(
strfind(nome"[EB]"true) != -1)
    {
        
SetPlayerPos(playeridXYZ);
        return 
0x01;
    }
    else if(
strfind(nome"[MB]"true) != -1)
    {
        
SetPlayerPos(playeridXYZ);
        return 
0x01;
    }
    return 
0x01;

Reply


Messages In This Thread
Spawn para nomes - by Jhoow - 11.07.2011, 20:37
Re: Spawn para nomes - by Jhoow - 11.07.2011, 20:40
Re: Spawn para nomes - by Josma_cmd - 11.07.2011, 20:51
Re: Spawn para nomes - by Shadoww5 - 11.07.2011, 20:53
Re: Spawn para nomes - by RockFire - 11.07.2011, 20:55
Re: Spawn para nomes - by CocaC0la - 11.07.2011, 20:55
Re: Spawn para nomes - by Jhoow - 11.07.2011, 21:01
Re: Spawn para nomes - by Josma_cmd - 11.07.2011, 21:08
Re: Spawn para nomes - by BrunoBSF - 11.07.2011, 21:15
Re: Spawn para nomes - by Miqueias Barros - 12.07.2011, 00:23

Forum Jump:


Users browsing this thread: 3 Guest(s)