29.12.2009, 00:05
i am way confused maybe some one can make a code for me from this code
i want it to save a file name of the users name that type /command and to make it save they're Pos And there Vehicle ID to a .txt file
pawn Код:
if (strcmp("/coord", cmdtext, true, 10) == 0)
{
new t = playerid;
new str[256];
new Float:Pos[MAX_PLAYERS][4];
GetPlayerPos(t,Pos[t][0],Pos[t][1],Pos[t][2]);
GetPlayerFacingAngle(t,Pos[t][3]);
format(str, 256,"x= %.4f y= %.4f z= %.4f a= %.4f",Pos[t][0],Pos[t][1],Pos[t][2],Pos[t][3]);
SendClientMessage(playerid, 0xFF0000AA, "Thank You Your Coords And Vehicle ID Have Ben Saved");
return 1;
}