18.05.2010, 05:35
People buy cars and then after they park it or leave the server when they call their car again, its a different car
if(strcmp(cmd, "/callv", true) == 0) { if(IsPlayerInAnyVehicle(playerid) ) return SendClientMessage(playerid,red,"you already have a car."); GetPlayerName(playerid,PlayerName,30); new car = PlayerInfo[playerid][CarID]; if(VehicleInfo[car][CarOwned] == 1 && PlayerInfo[playerid][OwnCar] == 1) { if(GetPlayerMoney(playerid) < 1000) { SendClientMessage(playerid,red,"You need 1000$ to call your vehicle"); } else { GetPlayerPos(playerid,Pos[playerid][0],Pos[playerid][1],Pos[playerid][2]); SetPlayerCameraPos(playerid, Pos[playerid][0],Pos[playerid][1],Pos[playerid][2]); SetPlayerCameraLookAt(playerid, Pos[playerid][0],Pos[playerid][1],Pos[playerid][2]); PutPlayerInVehicle(playerid, car, 0); GetVehicleZAngle(GetPlayerVehicleID(playerid), Angle[playerid]); SetTimerEx("TeleCar",1000,0,"i",playerid); SendClientMessage(playerid,green,"Your vehicle is here!"); GivePlayerMoney(playerid,-1000); } } else { SendClientMessage(playerid,red,"You dont have a vehicle!"); } return 1; }