08.12.2012, 15:19
pawn Код:
//-----------------------------------Save pos-----------------------------------
CMD:sp(playerid,params[])
{
#pragma unused params
GetPlayerPos(playerid,Pos[playerid][0],Pos[playerid][1],Pos[playerid][2]); // save x,y and z for this player.
GetPlayerFacingAngle(playerid,Pos[playerid][3]); // save the facing angle for this player.
new string[128],name[MAX_PLAYER_NAME];
format(string, sizeof(string), "%s(%u) Has Just Saved Their Current Possition",name,playerid);
SendClientMessageToAll(0xFFFF00,string); // send him a red message.
tinteriorid = GetPlayerInterior(playerid);
return 1;
}
//-----------------------------------Load pos-----------------------------------
CMD:lp(playerid,params[]){
#pragma unused params
if(AccInfo[playerid][Jailed] == 1) return Inter_SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment!");
TimedTele(playerid, "Your Last Position!", Pos[playerid][0], Pos[playerid][1], Pos[playerid][2], tinteriorid, GetPlayerVirtualWorld(playerid), 10);
new string[128],name[MAX_PLAYER_NAME];
format(string, sizeof(string), "%s(%u) Has Just Teleported To Their Saved Possition",name,playerid);
SendClientMessageToAll(0xFFFF00,string); // send him a red message.
return 1;
}