Advertisement
Guest User

Pickup.pwn

a guest
Nov 20th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.08 KB | None | 0 0
  1. #include <a_samp>
  2. #include <sscanf2>
  3. #include <zcmd>
  4.  
  5. #define FILTERSCRIPT
  6.  
  7. public OnFilterScriptInit()
  8. {
  9.     print("\n--------------------------------------");
  10.     print("Sistema by Marllun");
  11.     print("--------------------------------------\n");
  12.    
  13.     return 1;
  14. }
  15.  
  16. public OnFilterScriptExit()
  17. {
  18.     return 1;
  19. }
  20.  
  21.  
  22. CMD:icone(playerid, params[])//Comando
  23. {
  24.   static tipo,estilo,numero,msg[256], Float:x, Float:y, Float:z; //Variáveis
  25.   GetPlayerPos(playerid, x, y, z);//Getar as coordenadas do player
  26.   new File:f3 = fopen ( "Icones.txt" , io_append  );//Criar e escrever no arquvivo
  27.   if (sscanf(params, "dd", tipo,estilo)) return SendClientMessage(playerid, 0xFF0000FF, "| ERRO | /Icone [ID] [Modelo]"); //sscanf irá retorar caso ele não digite os 2 parametros do comando "[ID] [Modelo]"
  28.  
  29.   format(msg,256, "PickupCreditos = CreatePickup(%d,%d,%f,%f,%f,0)//%d;\r\n",tipo,estilo,x,y,z,numero);//Format para getar os valores no arquivo
  30.   fwrite(f3,msg), numero++;//setar o código acima no arquivo
  31.   fclose(f3);//Fechar
  32.   CreatePickup(tipo,estilo,x,y,z,0);//criar o pickup
  33.   return 1;
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement