HELP Cmd doesn't Work.
#4

pawn Код:
CMD:getcrate(playerid, params[])
{
    if (PlayerInfo[playerid][pJob] != 14 && PlayerInfo[playerid][pJob2] != 14)
    {
        SendClientMessageEx(playerid,COLOR_GREY,"   You are not Drug Job!");
        return 1;
    }
    new mypoint = -1;

    new playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername, sizeof(playername));
    for (new i=0; i<MAX_POINTS; i++)
    {
        if (IsPlayerInRangeOfPoint(playerid,2205.76,1580.31,999.98,1.0) && strcmp(Points[i][Name], "Drug Factory", true) == 0)
        {
            mypoint = i;
        }
    }
    if(PlayerInfo[playerid][pCrates])
    {
        SendClientMessageEx(playerid, COLOR_GREY, "   You can't Blablabla");
        return 1;
    }
    if(GetPlayerCash(playerid) > 1000)
    {
        SendClientMessageEx(playerid, COLOR_LIGHTRED,"What type of drugs would you like to smuggle? (Type crack or pot)");
        SetPVarInt(playerid, "ChoosingDrugs", 1);
        return 1;
    }
    else
    {
        SendClientMessageEx(playerid, COLOR_GREY," You can't afford the $1000!");
        return 1;
    }
}
quick fix he keeped bugging me on ******** (dont put comments for this code)
Reply


Messages In This Thread
HELP Cmd doesn't Work. - by dodowi - 22.07.2014, 13:08
Re: HELP Cmd doesn't Work. - by Shinta307 - 22.07.2014, 13:12
Re: HELP Cmd doesn't Work. - by dodowi - 22.07.2014, 13:24
Re: HELP Cmd doesn't Work. - by ShinichiKudou - 22.07.2014, 14:22
Re: HELP Cmd doesn't Work. - by dodowi - 22.07.2014, 15:00

Forum Jump:


Users browsing this thread: 1 Guest(s)