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 <streamer>
- #if defined FILTERSCRIPT
- new MyTimer[MAX_PLAYERS];//gang 1
- new Count=60;//gang 1
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Blank Filterscript by your name here");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Blank Gamemode by your name here");
- print("----------------------------------\n");
- }
- #endif
- public OnGameModeInit()
- {
- // Don't use these lines if it's a filterscript
- SetGameModeText("Blank Script");
- AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
- Count=60;
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(strcmp("/capture", cmdtext, true, 10) == 0)
- {
- if(Count <= 59) return SendClientMessage(playerid, 0xFFFFFF, "ERROR:This gang is already under capture.");
- Count = 60;
- SendClientMessage(playerid,0xfff000,"+1 secondo");
- KillTimer(MyTimer[playerid]);
- MyTimer[playerid] = SetTimerEx("TestFunction", 1000, 1, "i", playerid);
- }
- return 1;
- }
- return 0;
- }
- forward TestFunction(playerid);//upc
- public TestFunction(playerid)//upc
- {
- Count--;
- if(Count == 0)
- {
- SendClientMessage(playerid, 0xff00000, "+ 1 minuto.");
- KillTimer(MyTimer[playerid]);
- Count = 60;
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement