Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //============================================================================//
- // //
- // CREADO POR BADYX DESDE 0 //
- // //
- // FECHA DE INICIO DE SCRIPT 18 DE NOVIEMBRE DE 2011 //
- // //
- // PROHIBIDO ROBAR CREDITOS //
- // //
- //============================================================================//
- #include <a_samp>
- /* COLORES */
- #define COLOR_YELLOW2 0xF5DEB3AA
- /* NEWS */
- new EstaHaciendoClick[MAX_PLAYERS];
- new Clicks[MAX_PLAYERS];
- /* FORWARDS */
- forward Uno();
- forward Dos();
- forward Tres();
- forward Cuatro();
- forward Cinco();
- forward YA();
- /* INICIO DEL SCRIPT */
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Sistema de conteo de Clicks By The_Crazzy_Boy(Badyx) Activado");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- print(" Sistema de conteo de Clicks By The_Crazzy_Boy(Badyx) DesActivado");
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print("----------------------------------\n");
- }
- #endif
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/ActivarClick", cmdtext, true, 10) == 0)
- {
- EstaHaciendoClick[playerid] = 1;
- Congelado(playerid);
- SetTimerEx("ConteoActivado",100,0,"i",playerid);
- return 1;
- }
- return 0;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if (newkeys & KEY_FIRE)
- {
- if(EstaHaciendoClick[playerid] == 1)
- {
- Clicks[playerid] += 1;
- SendClientMessage(playerid, COLOR_YELLOW2, "Sumaste 1 Click!.");
- return 1;
- }
- else
- {
- return 1;
- }
- }
- return 1;
- }
- forward ConteoActivado(playerid);
- public ConteoActivado(playerid)
- {
- SetTimer("Cinco", 1000, 0);
- SetTimer("Cuatro", 2000, 0);
- SetTimer("Tres", 3000, 0);
- SetTimer("Dos", 4000, 0);
- SetTimer("Uno", 5000, 0);
- SetTimer("YA", 6000, 0);
- return 1;
- }
- public Cinco()
- {
- GameTextForAll("~p~5",2000,3);
- return 1;
- }
- public Cuatro()
- {
- GameTextForAll("~g~4",2000,3);
- return 1;
- }
- public Tres()
- {
- GameTextForAll("~r~3",2000,3);
- return 1;
- }
- public Dos()
- {
- GameTextForAll("~y~2",2000,3);
- return 1;
- }
- public Uno()
- {
- GameTextForAll("~w~1",2000,3);
- return 1;
- }
- public YA()
- {
- for(new playerid; playerid < MAX_PLAYERS; playerid++)
- {
- new string[128];
- format(string, sizeof(string), " Usted hizo $%d clicks.",Clicks[playerid]);
- SendClientMessage(playerid, COLOR_YELLOW2, string);
- EstaHaciendoClick[playerid] = 0;
- return 1;
- }
- return 1;
- }
- stock Congelado(playerid){
- TogglePlayerControllable(playerid,false);
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- SetPlayerPos(playerid,x,y,z+1.5);
- SetTimerEx("DescongelarPlayer", 5000, false, "i", playerid);
- }
- forward DescongelarPlayer(playerid);
- public DescongelarPlayer(playerid) TogglePlayerControllable(playerid, 1);
- //============================================================================//
- // SI TE SIRVIO RESPETA EL TRABAJO DEL CREADOR //
- // //
- //=========================FINAL DEL FILESCRIPT===============================//
Advertisement
Add Comment
Please, Sign In to add comment