Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* /====================================\
- | VISITE: WWW.SAMPPAWNO.BLOGSPOT.COM |
- \====================================/
- | |
- | |
- | |
- | |
- | |
- | |
- | |
- |___|
- */
- #define FILTERSCRIPT
- #include <a_samp>
- new gripe[MAX_PLAYERS];
- new remedios[MAX_PLAYERS];
- forward gripe2(playerid);
- forward gripe3(playerid);
- forward gripe4(playerid);
- forward gripe5(playerid);
- forward gripe6(playerid);
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" [FS] Sistema de Gripe. By Sergio ");
- print(" WWW.SAMPPAWNO.BLOGSPOT.COM ");
- print("--------------------------------------\n");
- SetTimer("gripe2",10000,false);
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- #endif
- public gripe2(playerid)
- {
- gripe[playerid] = 1;
- SetTimer("gripe3",1000,false);
- SendClientMessage(playerid, 0xAA3333AA, "Você esta gripado, va ate um medico para nao morrer");
- return 1;
- }
- public gripe3(playerid)
- {
- SetPlayerHealth(playerid, -10);
- SetTimer("gripe4",1000,false);
- return 1;
- }
- public gripe4(playerid)
- {
- SetPlayerHealth(playerid, -20);
- SetTimer("gripe5",1000,false);
- return 1;
- }
- public gripe5(playerid)
- {
- SetPlayerHealth(playerid, -50);
- SetTimer("gripe6",1000,false);
- SendClientMessage(playerid, 0xAA3333AA, "Sua gripe ja esta na fase 5, corra para um medico antes que você morra. Voce perdu 50hp");
- return 1;
- }
- public gripe6(playerid)
- {
- SetPlayerHealth(playerid, -100);
- SendClientMessage(playerid, 0xAA3333AA, "Sua gripe Evoluiu o levando a morte por gripe. Seu Pão duro!!!!");
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/remedios", cmdtext, true, 10) == 0)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, -27.1348,-54.9893,1003.5469) || IsPlayerInRangeOfPoint(playerid, 3.0, 1173.2234,-1322.9675,15.3947))
- {
- SendClientMessage(playerid,0xAA3333AA,"Você comprou seus remedios, digite /usarremedios para usarlos");
- remedios[playerid] = 1;
- }
- else
- {
- SendClientMessage(playerid,0xAA3333AA,"Você não esta na 24/7 ou no hospital");
- }//SetPlayerCheckpoint(playerid, X, Y, Z, 5);
- return 1;
- }
- if (strcmp("/hospital", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid,0xAA3333AA,"Siga a marca vermelha para chegar ao hospital!");
- SetPlayerCheckpoint(playerid, 1173.2234,-1322.9675,15.3947, 5);
- return 1;
- }
- if (strcmp("/usarremedios", cmdtext, true, 10) == 0)
- {
- if (remedios[playerid] == 1)
- {
- gripe[playerid] = 0;
- SetPlayerHealth(playerid, 0);
- }
- else
- {
- SendClientMessage(playerid,0xAA3333AA,"Você não tem remedios, va a um hospital e compre");
- }
- return 1;
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment