Pizza not work
#1

Hi, I created a command / pizza which does not work properly, I mean here that gives checkpoint but I do not get a vehicle which is signed for the group.

Should first download whether we are in the vehicle and then show what's next.

Код:
CMD:pizza(playerid, cmdtext[])
{
	if(CharacterInfo[playerid][pJob] != JOB_PIZZABOY) return 1;
	
	new v=GetPlayerVehicleID(playerid);
	if(VehicleInfo[v][vOwnerTyp] == OWNER_DORYWCZE && VehicleInfo[v][vOwner] == JOB_PIZZABOY)
	    return Tip(playerid,5,"~y~Take vehicle pizzaboy.");
	
	new los=random(2);
    switch(los)
    {
        case 0:
        {
            SetPlayerCheckpoint(playerid,-2196.0913,-2508.2332,30.5226, 3.0);
			Tip(playerid,5,"~y~Go to checkpoint.");
            return 1;
        }
        case 1:
        {
            SetPlayerCheckpoint(playerid,-2077.5425,-2546.7212,30.2229, 3.0);
			Tip(playerid,5,"~y~Go to checkpoint.");
            return 1;
        }
        case 2:
        {
            SetPlayerCheckpoint(playerid,-2004.6647,-2411.2637,30.2240, 3.0);
			Tip(playerid,5,"~y~Go to checkpoint.");
            return 1;
        }
    }
			
	return 1;
}
Reply


Messages In This Thread
Pizza not work - by Auri - 08.06.2018, 10:14
Re: Pizza not work - by jasperschellekens - 08.06.2018, 11:29
Re: Pizza not work - by Auri - 08.06.2018, 12:56
Re: Pizza not work - by jasperschellekens - 08.06.2018, 13:20

Forum Jump:


Users browsing this thread: 1 Guest(s)