Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- new gTeam[MAX_PLAYERS];
- new PointTimer;
- new LeaveTimer;
- forward IsPlayerInPoint(playerid);
- forward LeavePlayerRadius(playerid);
- #define Weiß 0xFFFFFFFF
- #define TEAM_TERROR 1
- public IsPlayerInPoint(playerid)
- {
- //Hier kommt das rein was nach 2 Minuten passieren soll!
- GivePlayerWeapon(playerid,35,10);
- return 1;
- }
- public LeavePlayerRadius(playerid)
- {
- if(!IsPlayerInRangeOfPoint(playerid, 7.0, 217.0114, 1822.8719, 6.4141))
- {
- KillTimer(PointTimer);
- KillTimer(LeaveTimer);
- SendClientMessageToAll(Weiß, "C4 klau ist gescheitert.");
- return 1;
- }
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/C4", cmdtext, true, 10) == 0)
- {
- if(gTeam[playerid] == TEAM_TERROR)
- {
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 217.0114, 1822.8719, 6.4141))
- {
- PointTimer = SetTimerEx("IsPlayerInPoint", 120000, false, "i", playerid);
- LeaveTimer = SetTimerEx("LeavePlayerRadius", 1000, true, "i", playerid);
- return 1;
- }
- SendClientMessage(playerid, Weiß, "Du bist nicht am C4 Point.");
- return 1;
- }
- SendClientMessage(playerid, Weiß, "Du bist kein Terror.");
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement