DeliverWeapon Command some help
#1

NVM Ty
Reply
#2

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]
Reply
#3

Код:
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...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)