16.12.2015, 21:03
If I understood right:
PHP код:
new Float:savedPosition[3]; // We'll store the position here
CMD:makepos(playerid, args) {
GetPlayerPos( playerid, savedPosition[0], savedPosition[1], savedPosition[2] );
SendClientMessage( playerid, -1, "Position was saved" );
}
CMD:gotopos(playerid, args) {
SetPlayerPos( playerid, savedPosition[0], savedPosition[1], savedPosition[2] );
SendClientMessage( playerid, -1, "You were teleported" );
}