02.08.2009, 19:12
I saw that script here at the forum:
And I want to know how to do that you need touse the command like that:
/s %d
%d = 1-200
And how to save also the angel of the player (a)
And how can I that the positions will save in a file like that:
Poistion 1: X Y Z A
In a file
can someone fix my code?
tanks for helpers
pawn Код:
new pos[MAX_PLAYERS][3];
if(strcmp(cmdtext, "/s", true) == 0)
{
new str[256], playername[256];
SendClientMessage(playerid, GREEN, "Saved your coordinates!");
GetPlayerPos(playerid,pos[playerid][0],pos[playerid][1],pos[playerid][2]);
GetPlayerName(playerid,playername,256);
format(str, 256, "%s saved his coordinates.",playername);
print(str);
return 1;
}
if(strcmp(cmdtext, "/l", true) == 0)
{
new str[256], playername[256];
SendClientMessage(playerid, GREEN, "Loaded your coordinates!");
SetPlayerPos(playerid,pos[playerid][0],pos[playerid][1],pos[playerid][2]);
GetPlayerName(playerid,playername,256);
format(str, 256, "%s loaded his coordinates.",playername);
print(str);
return 1;
}
}
/s %d
%d = 1-200
And how to save also the angel of the player (a)
And how can I that the positions will save in a file like that:
Poistion 1: X Y Z A
In a file
can someone fix my code?
tanks for helpers