Advertisement
TheKiller

Untitled

Jan 18th, 2012
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.69 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. public OnPlayerText(playerid, text[])
  4. {
  5.     if(!strcmp(text, "savembpos ", true, 9))
  6.     {
  7.         if(text[9] != ' ')
  8.         {
  9.             SendClientMessage(playerid, -1, "Please type a place location!");
  10.             return 0;
  11.         }
  12.         new Float:Pos[3];
  13.         new File:pos=fopen("positions.txt", io_append), string[128];
  14.         GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
  15.         format(string, sizeof(string), "{%f, %f, %f, \"%s\"},", Pos[0], Pos[1], Pos[2], text[10]);
  16.         fwrite(pos, string);
  17.         return 0;
  18.     }
  19.     //Copy and paste what is in the positions.txt in your scriptfiles folder into the top of the co-ordinates.
  20.     //Type savembpos (Location Name Here) ingame :)
  21.     return 1;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement