[AJUDA] Socio
#2

PHP код:
if(strcmp(cmd"/policiamilitar"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            if(
PlayerInfo[playerid][pSocio] >= 1)
            {
                if(
PlayerInfo[playerid][pMembro] != || PlayerInfo[playerid][pLider] != 0)
                {
                    return 
SendClientMessage(playerid, -1"Vocк jб tem uma organizaзгo, use /pedircontas!");
                }
                else
                {
                    
SetPlayerColor(playerid, -1);//Coloca a cor no lugar de -1!
                    
PlayerInfo[playerid][pMembro] = 1;
                    
PlayerInfo[playerid][pCargo] = 4;
                    
SetPlayerSkin(playerid,280);
                    
PlayerInfo[playerid][pChar] = 280;
                    
SetPlayerSpawn(playerid);
                    new 
name[MAX_PLAYER_NAME];
                    
GetPlayerName(playeridnamesizeof(name));
                    
format(string256"Sуcio: %s Entrou Para Policia Militar.",name);
                    
ProxDetector(70.0playeridstringCOLOR_DBLUE,COLOR_DBLUE,COLOR_DBLUE,COLOR_DBLUE,COLOR_DBLUE);
                }
            }
        }
        return 
1;
    } 
Reply


Messages In This Thread
[AJUDA] Socio - by Renato_Silva - 13.10.2011, 22:13
Re: [AJUDA] Socio - by Bruno Pereira - 13.10.2011, 22:15
Re: [AJUDA] Socio - by Renato_Silva - 13.10.2011, 22:37

Forum Jump:


Users browsing this thread: 2 Guest(s)