Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- public OnPlayerText(playerid, text[])
- {
- if(!strcmp(text, "savembpos ", true, 9))
- {
- if(text[9] != ' ')
- {
- SendClientMessage(playerid, -1, "Please type a place location!");
- return 0;
- }
- new Float:Pos[3];
- new File:pos=fopen("positions.txt", io_append), string[128];
- GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
- format(string, sizeof(string), "{%f, %f, %f, \"%s\"},", Pos[0], Pos[1], Pos[2], text[10]);
- fwrite(pos, string);
- return 0;
- }
- //Copy and paste what is in the positions.txt in your scriptfiles folder into the top of the co-ordinates.
- //Type savembpos (Location Name Here) ingame :)
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement