Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <core>
- #include <float>
- #pragma tabsize 0
- main()
- {
- print("\n----------------------------------");
- print(" Bare Script\n");
- print("----------------------------------\n");
- }
- public OnPlayerConnect(playerid)
- {
- GameTextForPlayer(playerid,"~w~SA-MP: ~r~Bare Script",5000,5);
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- new idx;
- new cmd[256];
- cmd = strtok(cmdtext, idx);
- if(strcmp(cmd, "/yadayada", true) == 0) {
- return 1;
- }
- return 0;
- }
- public OnPlayerSpawn(playerid)
- {
- SetPlayerInterior(playerid,0);
- TogglePlayerClock(playerid,0);
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- return 1;
- }
- SetupPlayerForClassSelection(playerid)
- {
- SetPlayerInterior(playerid,14);
- SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
- SetPlayerFacingAngle(playerid, 270.0);
- SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
- SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetupPlayerForClassSelection(playerid);
- return 1;
- }
- public OnGameModeInit()
- {
- SetGameModeText("Bare Script");
- ShowPlayerMarkers(1);
- ShowNameTags(1);
- AllowAdminTeleport(1);
- AddPlayerClass(265,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- //Objetos neavy
- CreateObject(16082, 2533.7, -1668.1, 20.6, 0, 0, 0);
- CreateObject(3399, 2546.1001, -1666, 26.8, 0, 0, 0);
- CreateObject(14791, 2555.69995, -1665.80005, 31.1, 0, 0, 0);
- CreateObject(2989, 2540.7, -1673, 15.2, 0, 0, 0);
- CreateObject(2986, 2505, -1693.4, 17, 0, 0, 350);
- CreateObject(2909, 2497.0469, -1618.458, 48.72143, 0, 0, 0);
- CreateObject(10184, 2557.5, -1665.7, 29.2, 0, 90, 0);
- CreateObject(10184, 2562.5, -1665.6, 29.2, 0, 90, 0);
- CreateObject(10184, 2556.2, -1671.5, 29.2, 0, 90, 270);
- CreateObject(10184, 2556.6001, -1659.5, 29.2, 0, 90, 270);
- CreateObject(10184, 2556.3999, -1660.9, 29.2, 0, 90, 270);
- CreateObject(2909, 2548.6001, -1669.2, 30.7, 0, 0, 270);
- CreateObject(2909, 2548.3999, -1663.4, 30.7, 0, 0, 270);
- CreateObject(2909, 2545.42871, -1677.99609, 9.2202, 0, 0, 0);
- CreateObject(987, 2548.1001, -1657.7, 29.4, 0, 0, 0);
- CreateObject(987, 2548.1001, -1663.2, 29.4, 0, 0, 90);
- CreateObject(987, 2553.3, -1657.7, 29.4, 0, 0, 0);
- CreateObject(987, 2565, -1657.7, 29.4, 0, 0, 270);
- CreateObject(987, 2564.8999, -1662.3, 29.4, 0, 0, 270);
- CreateObject(987, 2564.6001, -1674.2, 29.4, 0, 0, 180);
- CreateObject(987, 2559.8, -1674.1, 29.4, 0, 0, 179.995);
- CreateObject(987, 2548.1001, -1669.2, 29.4, 0, 0, 267.995);
- CreateObject(8407, 2521.3999, -1668, 15.4, 0, 0, 0);
- CreateObject(2599, 2519.6001, -1667.5, 14, 0, 0, 286);
- CreateObject(2714, 2520.2, -1668, 15.5, 0, 0, 270);
- CreateObject(2745, 2521.2, -1667.4, 18, 0, 0, 0);
- CreateObject(2745, 2521.2, -1668.6, 18, 0, 0, 182);
- CreateObject(8644, 2520.7, -1667.4, 21.3, 0, 0, 32);
- CreateObject(6865, 2520.5, -1667.6, 19.5, 0, 0, 318);
- CreateObject(8171, 88.3, 1552.8, 758.79999, 0, 0, 0);
- CreateObject(987, 68.8, 1495.5, 758.79999, 0, 0, 270);
- CreateObject(987, 69, 1507.2, 758.79999, 0, 0, 270);
- CreateObject(987, 69, 1519, 758.79999, 0, 0, 270);
- CreateObject(987, 68.9, 1530.8, 758.79999, 0, 0, 270);
- CreateObject(987, 68.8, 1542.8, 758.79999, 0, 0, 270);
- CreateObject(987, 68.8, 1554.9, 758.79999, 0, 0, 270);
- CreateObject(987, 68.8, 1567, 758.79999, 0, 0, 270);
- CreateObject(987, 68.9, 1578.9, 758.79999, 0, 0, 270);
- CreateObject(987, 69, 1590.5, 758.79999, 0, 0, 270);
- CreateObject(987, 69.1, 1602.4, 758.79999, 0, 0, 270);
- CreateObject(987, 69.2, 1614.3, 758.79999, 0, 0, 270);
- CreateObject(987, 69.1, 1621.7, 758.79999, 0, 0, 270);
- CreateObject(987, 81.3, 1621.6, 758.79999, 0, 0, 180);
- CreateObject(987, 93.3, 1621.5, 758.79999, 0, 0, 179.995);
- CreateObject(987, 105.1, 1621.4, 758.79999, 0, 0, 179.995);
- CreateObject(987, 107.8, 1610.2, 758.79999, 0, 0, 89.995);
- CreateObject(987, 108, 1621.5, 758.79999, 0, 0, 179.995);
- CreateObject(987, 107.7, 1598.3, 758.79999, 0, 0, 89.995);
- CreateObject(987, 107.6, 1586.4, 758.79999, 0, 0, 89.995);
- CreateObject(987, 107.4, 1574.4, 758.79999, 0, 0, 89.995);
- CreateObject(987, 107.4, 1562.7, 758.79999, 0, 0, 89.995);
- CreateObject(987, 107.3, 1551, 758.79999, 0, 0, 89.995);
- CreateObject(987, 107.3, 1539.4, 758.79999, 0, 0, 89.995);
- CreateObject(987, 107.2, 1527.6, 758.79999, 0, 0, 89.995);
- CreateObject(987, 107.2, 1515.8, 758.79999, 0, 0, 89.995);
- CreateObject(987, 107, 1504, 758.79999, 0, 0, 89.995);
- CreateObject(987, 106.9, 1491.9, 758.79999, 0, 0, 89.995);
- return 1;
- }
- strtok(const string[], &index)
- {
- new length = strlen(string);
- while ((index < length) && (string[index] <= ' '))
- {
- index++;
- }
- new offset = index;
- new result[20];
- while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
- {
- result[index - offset] = string[index];
- index++;
- }
- result[index - offset] = EOS;
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement