if(!strcmp(cmdtext, \"/sp\", true)) { if (IsPlayerInAnyVehicle(playerid)) { GetVehiclePos(GetPlayerVehicleID(playerid), SavePos[playerid][sX], SavePos[playerid][sY], SavePos[playerid][sZ]); GetVehicleZAngle(GetPlayerVehicleID(playerid), SavePos[playerid][sA]); } else { GetPlayerPos(playerid, SavePos[playerid][sX], SavePos[playerid][sY], SavePos[playerid][sZ]); GetPlayerFacingAngle(playerid, SavePos[playerid][sA]); } SavePos[playerid][savedPos] = 1; return SendClientMessage(playerid, COLOR_GREY, \"Pozició mentve.\"); } if(!strcmp(cmdtext, \"/gp\", true)) { if (SavePos[playerid][savedPos] == 0) return SendClientMessage(playerid, COLOR_GREENYELLOW, \"Pozició nincs mentve.\"); if (IsPlayerInAnyVehicle(playerid)) { SetVehiclePos(GetPlayerVehicleID(playerid), SavePos[playerid][sX], SavePos[playerid][sY], SavePos[playerid][sZ]); SetVehicleZAngle(GetPlayerVehicleID(playerid), SavePos[playerid][sA]); } else { SetPlayerPos(playerid, SavePos[playerid][sX], SavePos[playerid][sY], SavePos[playerid][sZ]); SetPlayerFacingAngle(playerid, SavePos[playerid][sA]); } return SendClientMessage(playerid, COLOR_ORANGE, \"Pozició betöltve.\");}
enum SavePosX { Float:sX, Float:sY,Float:sZ, Float:sA, SavedPos };new SavePos[MAX_PLAYERS][savePosX];
Szia!Gyorsan összedobtam egyet, remélem menni fog: if(!strcmp(cmdtext, \"/sp\", true)) { if (IsPlayerInAnyVehicle(playerid)) { GetVehiclePos(GetPlayerVehicleID(playerid), SavePos[playerid][sX], SavePos[playerid][sY], SavePos[playerid][sZ]); GetVehicleZAngle(GetPlayerVehicleID(playerid), SavePos[playerid][sA]); } else { GetPlayerPos(playerid, SavePos[playerid][sX], SavePos[playerid][sY], SavePos[playerid][sZ]); GetPlayerFacingAngle(playerid, SavePos[playerid][sA]); } SavePos[playerid][savedPos] = 1; return SendClientMessage(playerid, COLOR_GREY, \"Pozició mentve.\"); } if(!strcmp(cmdtext, \"/gp\", true)) { if (SavePos[playerid][savedPos] == 0) return SendClientMessage(playerid, COLOR_GREENYELLOW, \"Pozició nincs mentve.\"); if (IsPlayerInAnyVehicle(playerid)) { SetVehiclePos(GetPlayerVehicleID(playerid), SavePos[playerid][sX], SavePos[playerid][sY], SavePos[playerid][sZ]); SetVehicleZAngle(GetPlayerVehicleID(playerid), SavePos[playerid][sA]); } else { SetPlayerPos(playerid, SavePos[playerid][sX], SavePos[playerid][sY], SavePos[playerid][sZ]); SetPlayerFacingAngle(playerid, SavePos[playerid][sA]); } return SendClientMessage(playerid, COLOR_ORANGE, \"Pozició betöltve.\");}