Quote:
Originally Posted by Azzeto
Heres my CMD:
pawn Код:
CMD:savemycar(playerid,params[]) { if(PlayerInfo[playerid][Vehicle] != GetPlayerVehicleID(playerid)) return SendClientMessage(playerid,-1,EMBED_RED"[ERROR]: "EMBED_WHITE"You need to be in your vehicle."); new Float:cp[3]; GetPlayerPos(playerid,cp[0],cp[1],cp[2]); PlayerInfo[playerid][CarX] = cp[0]; PlayerInfo[playerid][CarY] = cp[1]; PlayerInfo[playerid][CarZ] = cp[2]; SendClientMessage(playerid,COLOR_GRAY,">> Vehicle Saved"); return 1; }
But Yet I go in game to my purchased vehicle, and type /savemycar but yet it says I need to be in my vehicle.
|
uhmm, I think that should work yeah. Not sure if the PlayerInfo[ blabla can read directly from floats..
might want to set it to the save file(ini, or SQL)