Why Car Menu wont work?? :(
#4

one more problem Rajt

I made that when players select tha car,the car spawns and the player is put inisde it.All codes compiling fine, but it wotn work.Below is the code

pawn Код:
public OnPlayerModelSelection(playerid, response, listid, modelid)
{
            if(listid == alist)
            {
                if(response)
                {
                    if(modelid==411)
                    {
                    ShowModelSelectionMenu(playerid,vlist,"Car menu.");
                    return 1;
                    }
                }
            }
            if(listid==vlist)
            {
                if(response)
                {
                    if(SpawnedVehicles[playerid] != 0) DestroyVehicle(SpawnedVehicles[playerid]);
                    new Float:x, Float:y, Float:z, Float:ROT;
                    GetPlayerPos(playerid, x, y, z);
                    GetPlayerFacingAngle (playerid,ROT);
                    SpawnedVehicles[playerid] = CreateVehicle(modelid,x,y,z,ROT,-1,-1,60);
                    PutPlayerInVehicle(playerid,SpawnedVehicles[playerid],0);
                    selectingcar[playerid]=0;

                }
            }
            return 1;
}
Reply


Messages In This Thread
Why Car Menu wont work?? :( - by Gamer_007 - 29.03.2013, 13:30
Re: Why Car Menu wont work?? :( - by Gamer_007 - 30.03.2013, 04:27
Re: Why Car Menu wont work?? :( - by RajatPawar - 30.03.2013, 06:53
Re: Why Car Menu wont work?? :( - by Gamer_007 - 30.03.2013, 08:20
Re: Why Car Menu wont work?? :( - by RajatPawar - 30.03.2013, 08:31

Forum Jump:


Users browsing this thread: 2 Guest(s)