[Ajuda] /mudarlocal nao salva
#5

Aeee fiz baseado no GF

pawn Код:
if(strcmp(cmd, "/mudarlocal", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if (PlayerInfo[playerid][pPhousekey] == 255)
            {
                SendClientMessage(playerid, COLOR_GREY, "Vocк nгo tem uma casa para mudar seu local de spawn.");
                return 1;
            }
            if (PlayerInfo[playerid][TUA VARIAVEL] == 0)
            {
                SendClientMessage(playerid, COLOR_GRAD5, "Seu spawn foi mudado para o local domiciliar.");
                PlayerInfo[playerid][TUA VARIAVE] = 1;
                return 1;
            }
            if (PlayerInfo[playerid][TUA VARIAVE] == 1)
            {
                SendClientMessage(playerid, COLOR_GRAD5, "Seu spawn foi mudado para a sua HQ local de trabalho.");
                PlayerInfo[playerid][TUA VARIAVE] = 0;
                return 1;
            }
        }
        return 1;
    }
Aii vocк vai ter de por em prбtica esta array aonde seta o spawn do jogador!
Reply


Messages In This Thread
[Ajuda] /mudarlocal nao salva - by azull - 04.08.2010, 21:00
Re: [Ajuda] /mudarlocal nao salva - by Kaizen - 04.08.2010, 22:07
Re: [Ajuda] /mudarlocal nao salva - by ipsBruno - 04.08.2010, 23:18
Re: [Ajuda] /mudarlocal nao salva - by Kaizen - 04.08.2010, 23:35
Re: [Ajuda] /mudarlocal nao salva - by pawNO - 05.08.2010, 01:17

Forum Jump:


Users browsing this thread: 1 Guest(s)