Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <DOF2>
- #include <zcmd>
- #include <sscanf>
- #define FILTERSCRIPT
- new Float:ArrayCoords[][3] =
- {
- {140.17, 1366.07, 1083.65}, // Grande
- {2324.53, -1149.54, 1050.71}, // Grande
- {225.68, 1021.45, 1084.02}, // Grande
- {234.19, 1063.73, 1084.21}, // Grande
- {226.30, 1114.24, 1080.99}, // Grande
- {235.34, 1186.68, 1080.26}, // Medio
- {491.07, 1398.50, 1080.26}, // Medio
- {24.04, 1340.17, 1084.38}, // Medio
- {-283.44, 1470.93, 1084.38}, // Medio
- {-260.49, 1456.75, 1084.37}, // Medio
- {83.03, 1322.28, 1083.87}, // Medio
- {2317.89, -1026.76, 1050.22}, // Medio
- {2495.98, -1692.08, 1014.74}, // Medio
- {2807.48, -1174.76, 1025.57}, // Medio
- {2196.85, -1204.25, 1049.02}, // Medio
- {377.15, 1417.41, 1081.33}, // Medio
- {2270.38, -1210.35, 1047.56}, // Medio
- {446.99, 1397.07, 1084.30}, // Medio
- {387.22, 1471.70, 1080.19}, // Medio
- {22.88, 1403.33, 1084.44}, // Medio
- {2365.31, -1135.60, 1050.88}, // Medio
- {2237.59, -1081.64, 1049.02}, // Medio
- {295.04, 1472.26, 1080.26}, // Medio
- {261.12, 1284.30, 1080.26}, // Medio
- {221.92, 1140.20, 1082.61}, // Medio
- {-68.81, 1351.21, 1080.21}, // Medio
- {260.85, 1237.24, 1084.26}, // Medio
- {2468.84, -1698.24, 1013.51}, // Medio
- {223.20, 1287.08, 1082.14}, // Pequeno
- {2283.04, -1140.28, 1050.90}, // Pequeno
- {328.05, 1477.73, 1084.44}, // Pequeno
- {223.20, 1287.08, 1082.14}, // Pequeno
- {-42.59, 1405.47, 1084.43}, // Pequeno
- {446.90, 506.35, 1001.42}, // Pequeno // Veja se este esta bugado
- {299.78, 309.89, 1003.30}, // Pequeno
- {2308.77, -1212.94, 1049.02}, // Pequeno
- {2233.64, -1115.26, 1050.88}, // Pequeno
- {2218.40, -1076.18, 1050.48}, // Pequeno
- {266.50, 304.90, 999.15}, // Pequeno
- {243.72, 304.91, 999.15}, // Pequeno
- {343.81, 304.86, 999.15}, // Pequeno
- {2259.38, -1135.77, 1050.64} // Pequeno
- };
- new InterioresPos[] =
- {
- 5, // Grande
- 12, // Grande
- 7, // Grande
- 6, // Grande
- 5, // Grande
- 3, // Medio
- 2, // Medio
- 10, // Medio
- 15, // Medio
- 4, // Medio
- 9, // Medio
- 9, // Medio
- 3, // Medio
- 8, // Medio
- 6, // Medio
- 15, // Medio
- 10, // Medio
- 2, // Medio
- 15, // Medio
- 5, // Medio
- 8, // Medio
- 2, // Medio
- 15, // Medio
- 4, // Medio
- 4, // Medio
- 6, // Medio
- 9, // Medio
- 2, // Medio
- 1, // Pequeno
- 11, // Pequeno
- 15, // Pequeno
- 1, // Pequeno
- 8, // Pequeno
- 12, // Pequeno
- 4, // Pequeno
- 6, // Pequeno
- 5, // Pequeno
- 1, // Pequeno
- 2, // Pequeno
- 1, // Pequeno
- 6, // Pequeno
- 10 // Pequeno
- };
- new CasaEditando;
- new bool:FezEste[43][2];
- new bool:first;
- public OnFilterScriptInit()
- {
- print("Iniciado");
- return true;
- }
- CMD:spawn(playerid)
- {
- new Float:Pos[4], Int;
- GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
- GetPlayerFacingAngle(playerid, Pos[3]);
- Int = GetPlayerInterior(playerid);
- new posicao[100], key[10];
- format(posicao, 100, !"%f, %f, %f, %f, %d", Pos[0], Pos[1], Pos[2], Pos[3], Int);
- format(key, 10, !"%d", CasaEditando);
- DOF2::SetString(!"ArraySpawns.ini", key, posicao);
- DOF2::SaveFile();
- FezEste[CasaEditando][0] = true;
- SendClientMessage(playerid, -1, !"Feito");
- return true;
- }
- CMD:descricao(playerid, params[])
- {
- new desc[45];
- if(sscanf(params, !"s[44]", desc)) return SendClientMessage(playerid, -1, !"USO: /descricao < descricao do interior>");
- new key[12];
- format(key, 10, !"%d", CasaEditando);
- DOF2::SetString(!"ArrayDescricao.ini", key, desc);
- DOF2::SaveFile();
- FezEste[CasaEditando][1] = true;
- SendClientMessage(playerid, -1, !"Feito");
- return true;
- }
- CMD:proximacasa(playerid)
- {
- if(!first)
- {
- SetPlayerPos(playerid, ArrayCoords[CasaEditando][0], ArrayCoords[CasaEditando][1], ArrayCoords[CasaEditando][2]);
- SetPlayerInterior(playerid, InterioresPos[CasaEditando]);
- return true;
- }
- firt = true;
- if(!FezEste[CasaEditando][0]) return SendClientMessage(playerid, -1, !"{FF0000}[ERRO]:{FFFFFF}Não adcionou o local de spawn ainda..");
- if(!FezEste[CasaEditando][1]) return SendClientMessage(playerid, -1, !"{FF0000}[ERRO]:{FFFFFF}Não adcionou a descricao ainda..");
- CasaEditando ++;
- if(CasaEditando == 33)
- {
- SendClientMessage(playerid, -1, !"Veja se este interior ta bugado... tava escrito algo no link que eu vi");
- }
- SetPlayerPos(playerid, ArrayCoords[CasaEditando][0], ArrayCoords[CasaEditando][1], ArrayCoords[CasaEditando][2]);
- SetPlayerInterior(playerid, InterioresPos[CasaEditando]);
- SendClientMessage(playerid, -1, !"Feito");
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement