Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <sscanf2>
- #include <zcmd>
- #define FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print("Sistema by Marllun");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- CMD:icone(playerid, params[])//Comando
- {
- static tipo,estilo,numero,msg[256], Float:x, Float:y, Float:z; //Variáveis
- GetPlayerPos(playerid, x, y, z);//Getar as coordenadas do player
- new File:f3 = fopen ( "Icones.txt" , io_append );//Criar e escrever no arquvivo
- 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]"
- 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
- fwrite(f3,msg), numero++;//setar o código acima no arquivo
- fclose(f3);//Fechar
- CreatePickup(tipo,estilo,x,y,z,0);//criar o pickup
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement