some problems with pickups
#4

Then do:
pawn Код:
if(strcmp("/angajeaza", cmdtext, true, 10) == 0 )
{
        if(IsPlayerInRangeOfPoint(playerid, 3,1811.886, -1879.317, 13.227))
        {
                if(PlayerInfo[playerid][pJob] == 0)
                {
                        SCM(playerid,COLOR_CRS3,"** Acum esti sofer de autobuz.");
                    PlayerInfo[playerid][pJob] = 1;
                        new INI:File = INI_Open(UserPath(playerid));
            INI_SetTag(File,"data");
            INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
            INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
            INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
            INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
            INI_WriteInt(File,"pCarLic",PlayerInfo[playerid][pCarLic]);
            INI_WriteInt(File,"pJob",PlayerInfo[playerid][pJob]);
            INI_Close(File);

                }
                else SCM(playerid,COLOR_CRS3,"** Ai deja un job.");
        }
    else if(IsPlayerInRangeOfPoint(playerid, 3,2086.214, -2083.438, 13.641))
        {
                if(PlayerInfo[playerid][pJob] == 0)
                {
                    SCM(playerid,COLOR_CRS3,"** Acum esti tehnician salubritate publica.");
                    PlayerInfo[playerid][pJob] = 2;
                        new INI:File = INI_Open(UserPath(playerid));
            INI_SetTag(File,"data");
            INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
            INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
            INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
            INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
            INI_WriteInt(File,"pCarLic",PlayerInfo[playerid][pCarLic]);
            INI_WriteInt(File,"pJob",PlayerInfo[playerid][pJob]);
            INI_Close(File);

                }
                else SCM(playerid,COLOR_CRS3,"** Ai deja un job.");
        }
        return 1;
}
Reply


Messages In This Thread
some problems with pickups - by moof2010 - 12.11.2013, 12:37
Re: some problems with pickups - by Loot - 12.11.2013, 13:29
Re: some problems with pickups - by moof2010 - 12.11.2013, 13:35
Re: some problems with pickups - by Loot - 12.11.2013, 14:40
Re: some problems with pickups - by moof2010 - 12.11.2013, 14:49
Re: some problems with pickups - by Loot - 12.11.2013, 15:06
Re: some problems with pickups - by moof2010 - 12.11.2013, 15:10
Re: some problems with pickups - by Loot - 12.11.2013, 15:16
Re: some problems with pickups - by moof2010 - 12.11.2013, 16:34
Re: some problems with pickups - by DaniceMcHarley - 12.11.2013, 16:37

Forum Jump:


Users browsing this thread: 1 Guest(s)