CMD:kocsi(playerid, params[]){ #pragma unused params new vehid, string[128];vehid = GetPlayerVehicleID(playerid);PlayerInfo[playerid][CarID] = vehid; if(IsPlayerInAnyVehicle(playerid)){new Float:x, Float:y, Float:z;GetPlayerPos(playerid,x,y,z); if(fexist(file)){ dini_IntSet(file,\"CarID\", PlayerInfo[playerid][CarID]); dini_FloatSet(file, \"posX\", x); dini_FloatSet(file, \"posY\", y); dini_FloatSet(file, \"posZ\", z); format(string, sizeof(string),\"Jármû lementve! ID: %d\", vehid); SendClientMessage(playerid,COLOR_BLUE,string);}} else { SendClientMessage(playerid,COLOR_RED,\"Nem ûlsz jármûben!\");}return 1;}
CMD:kocsi(playerid, params[]){ #pragma unused params if(IsPlayerInAnyVehicle(playerid)){ new vehid, string[128]; vehid = GetPlayerVehicleID(playerid); PlayerInfo[playerid][CarID] = vehid;new Float:x, Float:y, Float:z;GetPlayerPos(playerid,x,y,z); if(fexist(file)){ dini_IntSet(file,\"CarID\", PlayerInfo[playerid][CarID]); dini_FloatSet(file, \"posX\", x); dini_FloatSet(file, \"posY\", y); dini_FloatSet(file, \"posZ\", z); format(string, sizeof(string),\"Jármû lementve! ID: %d\", vehid); SendClientMessage(playerid,COLOR_BLUE,string);}} else { SendClientMessage(playerid,COLOR_RED,\"Nem ûlsz jármûben!\");}return 1;}
CMD:kocsi(playerid, params[]){ #pragma unused params if(IsPlayerInAnyVehicle(playerid)) { new vehid, string[128]; vehid = GetPlayerVehicleID(playerid); PlayerInfo[playerid][CarID] = vehid; new Float:x, Float:y, Float:z; GetVehiclePos(playerid,x,y,z); if(fexist(file)) { dini_IntSet(file,\"CarID\", PlayerInfo[playerid][CarID]); dini_FloatSet(file, \"posX\", x); dini_FloatSet(file, \"posY\", y); dini_FloatSet(file, \"posZ\", z); format(string, sizeof(string),\"Jármû lementve! ID: %d\", vehid); SendClientMessage(playerid,COLOR_BLUE,string); } } else { SendClientMessage(playerid,COLOR_RED,\"Nem ûlsz jármûben!\"); } return 1;}
vehid = GetVehicleModel(GetPlayerVehicleID(playerid));