checkpoint on radar..
#1

hi guys, anyone can help me when they do /unloadcomps, the radar show the checkpoint..

pawn Code:
COMMAND:unloadcomps(playerid, params[])
{
    if(PlayerInfo[playerid][playerteam]!=SDC) return SendClientError(playerid, CANT_USE_CMD);
    if(!IsPlayerInRangeOfPoint(playerid, 7.0, 841.9504,1836.5071,10.8310)) return SendClientError(playerid, "You are not at the warehouse!");
    SetPlayerCheckpoint(playerid, 841.9504,1836.5071,10.8310, 3.0);
    new carid = GetPlayerVehicleID(playerid);
    if(comps[carid][guns] == 0 && comps[carid][cars] == 0 && comps[carid][alchool] == 0 && comps[carid][stuffs] == 0)
        return SendClientError(playerid, "No comps in your truck.");
    SetTimerEx("AddToStock", 900, false, "dddd",comps[carid][guns],comps[carid][cars],comps[carid][stuffs],comps[carid][alchool]);
    comps[carid][guns] = 0;
    comps[carid][cars] = 0;
    comps[carid][stuffs] = 0;
    comps[carid][alchool] = 0;
    SendClientMessage(playerid,COLOR_WHITE,"[WH] Deposited all comps in the warehouse. Use /whinfo to see the stats. Earned $800.");
    GivePlayerMoneyEx(playerid, 800);
    PlayerInfo[playerid][totalruns]++;
    format(iStr, sizeof(iStr), "## [%s] %s %s has just finished a run (+$800)", PlayerInfo[playerid][PTeamName], PlayerInfo[playerid][rankname], RPName(playerid));
    SendClientMessageToTeam( SDC, iStr, COLOR_PLAYER_VLIGHTBLUE);
    return 1;
}
Reply
#2

BUMP!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)