Originally Posted by ipsBruno
Tudo Salva na Script Files
Problemas Com '/save' No Windows Seven?
Revolucione e Use Este Meu Simples Comando Jб!
Salvar Simples Posiзгo:
pawn Код:
if (strcmp(cmdtext, "/save", true)==0) { GetPlayerPos(playerid, X, Y, Z); new File:pos=fopen("positions.txt", io_append); format(string, 256, "Coordenada(%f, %f, %f);", X, Y, Z,Rotation); fwrite(pos, string); fclose(pos); return 1; }
Salvar Simples Posiзгo em Formato de AddPlayerClass (By: Wiki)
pawn Код:
if (strcmp(cmdtext, "/save", true)==0) { GetPlayerPos(playerid, X, Y, Z); GetPlayerFacingAngle(playerid, Rotation); new File:pos=fopen("positions.txt", io_append); format(string, 256, "AddPlayerClass(0, %f, %f, %f, %f, 0,0,0,0,0,0);", X, Y, Z,Rotation); fwrite(pos, string); fclose(pos); return 1; }
Salvar em Formato AddPlayerClass com Skins (By: Eu)
pawn Код:
if (strcmp(cmdtext, "/save", true)==0) { GetPlayerPos(playerid, X, Y, Z); GetPlayerFacingAngle(playerid, Rotation); Skin = GetPlayerSkin(playerid); new File:pos=fopen("positions.txt", io_append); format(string, 256, "AddPlayerClass(%d, %f, %f, %f, %f, 0,0,0,0,0,0);",Skin, X, Y, Z,Rotation); fwrite(pos, string); fclose(pos); return 1; }
Caso Queira Salvar com Armas
GetPlayerWeapon e Assim Vai
Espero ter ajudado os usuбrio do windows 7
PS: Garfield se puder incorpora ao teu post com meu nome hein!
|