PHP Code:
new Float:postion_keep[200][3];
new other_keep[200][2];
if(!strcmp(cmdtext ,"/Keep" , true))
{
other_keep[playerid][0] = GetPlayerInterior(playerid);
other_keep[playerid][1] = GetPlayerVirtualWorld(playerid);
GetPlayerPos(playerid, postion_keep[playerid][0],postion_keep[playerid][1],postion_keep[playerid][2]);
return SendClientMessage(playerid,Bm,"Save Pos Coords ™");
}
if(!strcmp(cmdtext ,"/GotoKeep" , true))
{
if(!(IsPlayerInAnyVehicle(playerid)))
{
SetPlayerPos(playerid,postion_keep[playerid][0],postion_keep[playerid][1],postion_keep[playerid][2]);
}
else if((IsPlayerInAnyVehicle(playerid)))
{
LinkVehicleToInterior(GetPlayerVehicleID(playerid),other_keep[playerid][0]);
SetVehicleVirtualWorld(GetPlayerVehicleID(playerid),other_keep[playerid][1]);
SetVehiclePos(GetPlayerVehicleID(playerid),postion_keep[playerid][0],postion_keep[playerid][1],postion_keep[playerid][2]);
}
SetPlayerInterior(playerid,other_keep[playerid][0]);
SetPlayerVirtualWorld(playerid,other_keep[playerid][1]);
return SendClientMessage(playerid,Bm,"Load Pos Coords ™");
}
תהנה, לא בדקתי עם יש אירורים או לא, תגיד לי
.