SA-MP Forums Archive
checkpoint on radar.. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: checkpoint on radar.. (/showthread.php?tid=466678)



checkpoint on radar.. - pgrp123 - 29.09.2013

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;
}



Re: checkpoint on radar.. - pgrp123 - 29.09.2013

BUMP!