DeliverWeapon Command some help - 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: DeliverWeapon Command some help (
/showthread.php?tid=468972)
DeliverWeapon Command some help -
yaron0600 - 11.10.2013
NVM Ty
Re: DeliverWeapon Command some help -
JamesH - 11.10.2013
Show the DeliverVehicles stock.
And try using a ! and return look below at the code
Код:
CMD:deliverwep(playerid, params[])
{
if (IsPlayerInRangeOfPoint(playerid, 10.0, -1064.62, 4535.35, 5.56)) // Crates
{
new vehicle = GetPlayerVehicleID(playerid);
new string[128];
// changes are here if(!IsADeliverVehicles(vehicle)) return SendClientMessage(playerid, WHITE, "you aint driving a delivery vehicle.");
SendClientMessageEx(playerid, COLOR_WHITE, "HINT: Follow the red point on your radar, becarefully from cops.");
SetPVarInt(playerid, "CratesDeliver", 333);
SetPVarInt(playerid, "CratesRunTimer", 15);
PlayerInfo[playerid][pDeliverPlane] += 1;
//DeliverPlane[playerid] = 1;
SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_TPCRATESRUNTIMER);
SetPlayerCheckpoint(playerid, 1968.79, -2492.85, 13.54, 5);
format(string, sizeof(string), " SAAS Air to SAAS Armed Forces has reported %s as a wanted person,Reason:Stealing the crates.", GetPlayerNameEx(playerid));
SendRadioMessage(11, DEPTRADIO, string);
}
SendClientMessageEx(playerid, COLOR_GREY, "You're not at the Island.");
return 1;
}
[/QUOTE]
Re: DeliverWeapon Command some help -
yaron0600 - 11.10.2013
Код:
public OnPlayerEnterCheckpoint(playerid)
{
/*new szMessage[128];
if(PlayerInfo[playerid][pDeliverPlane] = 1 && IsPlayerInRangeOfPoint(playerid, 10,1968.79, -2492.85, 13.54))
format(szMessage, sizeof(szMessage), "You have picked up the Illeagel Deliver for Crates! ");
format(szMessage, sizeof(szMessage), "Congratz now you got crates! ");
SendClientMessageEx(playerid, COLOR_WHITE, szMessage);
DisablePlayerCheckpoint(playerid);
PlayerInfo[playerid][pGunCrates] = 1;
for(new i = 1; i <= MAX_VEHICLES; i++)
{
SetVehicleToRespawn(i);
}*/
This is the start of the OnPlayerEnterCheckPoint, and here's the stock...