CAR MENU HELP
#1

this dose not seem to actualy spawn the car it nows if im in a car and when i buy it it tells me i have but it dont spawn the car any reason why ? im abignoob at this so plz dontbe harsh .

//=======================[ The Bit of car skript ]================================================== ========================
if(CurrentMenu == Vehicles)
{
switch(row)
{
case 0:
{
TogglePlayerControllable(playerid,1);
if (GetPlayerMoney(playerid) >= 4000)
{
if(IsPlayerInAnyVehicle(playerid))
{
ShowMenuForPlayer(Vehicles,playerid);TogglePlayerC ontrollable(playerid, 0);
SendClientMessage(playerid, 0x33AA33AA, "You are already in a vehicle");
return 1;
}
else
{

GetPlayerPos(playerid,x,y,z);
GetPlayerFacingAngle(playerid,a);
CreateVehicle(411,x+1,y+1,z+2,a,0,1,130);
PutPlayerInVehicle(playerid, vehicleid2, 0);
GivePlayerMoney(playerid, -4000);
SendClientMessage(playerid,COLOR_WHITE,"[SUCCESS]> You bought an Infernus for 4000$");
}
}
else
{
ShowMenuForPlayer(Vehicles,playerid);TogglePlayerC ontrollable(playerid, 0);
SendClientMessage(playerid, COLOR_ULTRARED, "You don't have enough moneys! You need 4200$.");
return 1;
}
}
Reply


Messages In This Thread
CAR MENU HELP - by XxJoexX - 25.03.2010, 00:23
Re: CAR MENU HELP - by XGh0stz - 25.03.2010, 02:27
Re: CAR MENU HELP - by XxJoexX - 25.03.2010, 07:10
Re: CAR MENU HELP - by XxJoexX - 25.03.2010, 07:36

Forum Jump:


Users browsing this thread: 2 Guest(s)