Detecting if a player is in their owned vehicle REP+
#7

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)
Reply


Messages In This Thread
Detecting if a player is in their owned vehicle REP+ - by Azzeto - 30.01.2012, 10:38
Re: Detecting if a player is in their owned vehicle REP+ - by milanosie - 30.01.2012, 10:39
Re: Detecting if a player is in their owned vehicle REP+ - by Azzeto - 30.01.2012, 10:40
Re: Detecting if a player is in their owned vehicle REP+ - by milanosie - 30.01.2012, 10:43
Re: Detecting if a player is in their owned vehicle REP+ - by milanosie - 30.01.2012, 10:46
Re: Detecting if a player is in their owned vehicle REP+ - by Azzeto - 30.01.2012, 10:48
Re: Detecting if a player is in their owned vehicle REP+ - by milanosie - 30.01.2012, 10:55
Re: Detecting if a player is in their owned vehicle REP+ - by Azzeto - 30.01.2012, 10:56
Re: Detecting if a player is in their owned vehicle REP+ - by Unte99 - 30.01.2012, 11:12
Re: Detecting if a player is in their owned vehicle REP+ - by DRIFT_HUNTER - 30.01.2012, 11:35
Re: Detecting if a player is in their owned vehicle REP+ - by Azzeto - 30.01.2012, 20:55
Re: Detecting if a player is in their owned vehicle REP+ - by Azzeto - 01.02.2012, 04:01
Re: Detecting if a player is in their owned vehicle REP+ - by Azzeto - 02.02.2012, 19:08
Re: Detecting if a player is in their owned vehicle REP+ - by milanosie - 02.02.2012, 19:18
Re: Detecting if a player is in their owned vehicle REP+ - by Azzeto - 02.02.2012, 19:32
Re: Detecting if a player is in their owned vehicle REP+ - by milanosie - 02.02.2012, 19:37
Re: Detecting if a player is in their owned vehicle REP+ - by Fj0rtizFredde - 02.02.2012, 19:38
Re: Detecting if a player is in their owned vehicle REP+ - by milanosie - 02.02.2012, 19:39
Re: Detecting if a player is in their owned vehicle REP+ - by Azzeto - 02.02.2012, 19:42

Forum Jump:


Users browsing this thread: 2 Guest(s)