Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This is a comment
- // uncomment the line below if you want to write a filterscript
- //#define FILTERSCRIPT
- #include <a_samp>
- #include <YSI\y_groups>
- #include <YSI\y_areas>
- #include <YSI\y_timers>
- #include <YSI\y_classes>
- //#define GROUP_LIBRARY_NAME<%0...%1> %0User%1
- //#define GROUP_LIBRARY_SIZE 100
- //#include <YSI\y_groups>
- new gBox;
- ptask Rads[1000](playerid)
- {
- SendClientMessage(playerid, 0xFFFFFFAA, "RADS");
- // new Float:x, Float:y, Float:z, str[32];
- // GetPlayerPos(playerid, x, y, z);
- //format(str, sizeof (str), "%.2f %.2s
- // printf("%f %f", x, y);
- if (Area_GetPlayerArea(playerid) == gBox)
- {
- SendClientMessage(playerid, 0xFFFFFFAA, "IN");
- }
- }
- main()
- {
- print("\n----------------------------------");
- print(" Blank Gamemode by your name here");
- print("----------------------------------\n");
- }
- public OnGameModeInit()
- {
- // Enable all areas for all players.
- Group_SetGlobalAreaDefault(true);
- gBox = Area_AddBox(1918.8, 1314.1, 1957.0, 1283.5);
- }
- public OnPlayerEnterArea(playerid, areaid)
- {
- printf("ENTERED THE AREA");
- }
- public OnPlayerLeaveArea(playerid, areaid)
- {
- printf("EXITED THE AREA");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement