Skip to content

Commit

Permalink
remove temp remote api calls
Browse files Browse the repository at this point in the history
add class to test.pwn
  • Loading branch information
bwhitmire55 committed Oct 9, 2018
1 parent 9320f8b commit a816b1c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 28 deletions.
11 changes: 0 additions & 11 deletions event.inc
Original file line number Diff line number Diff line change
Expand Up @@ -225,15 +225,4 @@ public RemovePlayerFromEvent(playerid) {
return 1;
}
return 0;
}

forward GetEventName(eventid, buffer[], size);
public GetEventName(eventid, buffer[], size) {
strcat(buffer, gEventData[eventid][eName], size);
return 1;
}

forward GetEventCommand(eventid);
public GetEventCommand(eventid) {
return gEventData[eventid][eCommand];
}
14 changes: 0 additions & 14 deletions event_api.inc
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,4 @@ public API_OnPlayerSpawnInEvent(playerid, id) {
CallLocalFunction("OnPlayerSpawnInEvent", "i", playerid);
}
return 1;
}

stock GetName() {
new buffer[60];
CallRemoteFunction("GetEventName", "iai", gEventID, buffer, sizeof(buffer));
return buffer;
}

stock GetCommand() {
return CallRemoteFunction("GetEventCommand", "i", gEventID);
}

stock RemovePlayer(playerid) {
CallRemoteFunction("RemovePlayerFromEvent", "i", playerid);
}
4 changes: 1 addition & 3 deletions filterscripts/minigun-dm/minigun-dm.pwn
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ new gPlayerDeaths[MAX_PLAYERS];

public OnEventInit() {

new buffer[90];
format(buffer, sizeof(buffer), "** Event %s has begun! Use %s to join!", GetName(), GetCommand());
SendClientMessageToAll(0x00FF00FF, buffer);
SendClientMessageToAll(0x00FF00FF, "** Event Minigun Deathmatch has begun! Use /minigun to join!");
return 1;
}

Expand Down
2 changes: 2 additions & 0 deletions test.pwn
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ main() {

public OnGameModeInit() {
print("Test mode for event.inc");

AddPlayerClass(0, 0.00, 0.00, 0.00, 0.00, 0, 0, 0, 0, 0, 0);
return 1;
}

Expand Down

0 comments on commit a816b1c

Please sign in to comment.