Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- new HatEinTeaser[MAX_PLAYERS];
- #define COLOR_RED 0xFF000FFF
- #define MAX_PLAYERS_NAME 20
- new teaserp;
- public OnFilterScriptInit()
- {
- teaserp = CreatePickup(1274,2,1579.5160,-1635.1689,13.5615);//LSPD
- print("\n______________________________________________");
- print(" Teaser System By SpeedFight2 (2011)");
- print("______________________________________________\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
- {
- if(weaponid == 23)
- {
- if(HatEinTeaser[issuerid] == 1)
- {
- new fplayer[MAX_PLAYERS_NAME];
- new ttext[64];
- GetPlayerName(playerid,fplayer,sizeof fplayer);
- SetTimerEx("unfreeze",10000,false,"u",playerid);
- TogglePlayerControllable(playerid,0);
- format(ttext,sizeof ttext,"Du hast %s fΓΌr 10 Sekunden Geteasert",fplayer);
- SendClientMessage(issuerid,COLOR_RED,ttext);
- }
- }
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- if(pickupid == teaserp)
- {
- if(HatEinTeaser[playerid] == 0)
- {
- GivePlayerWeapon(playerid,23,15);
- SendClientMessage(playerid,COLOR_RED,"Du hast einen Teaser mit 15 schuss rausgeholt");
- HatEinTeaser[playerid] = 1;
- }
- else SendClientMessage(playerid,COLOR_RED,"Du hattest schon einen Teaser");
- }
- return 1;
- }
- forward unfreeze(playerid);
- public unfreeze(playerid)
- {
- TogglePlayerControllable(playerid,1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement