Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void DoNoUpgradeSwitch(int ClientID, CGameContext* pGameServer, char* aUpgrade)
- {
- if(!pGameServer->m_apPlayers[ClientID]->AccountData.m_LoggedIn)
- {
- pGameServer->SendChatTarget(ClientID, "You are not logged in!");
- return;
- }
- char aBuf[512];
- if(!*pSwitcher)
- {
- *pSwitcher = true;
- str_format(aBuf, sizeof(aBuf), "%s activated!", aUpgrade);
- pGameServer->SendChatTarget(ClientID, aBuf);
- }
- else if(*pSwitcher)
- {
- *pSwitcher = false;
- str_format(aBuf, sizeof(aBuf), "%s deactivated!", aUpgrade);
- pGameServer->SendChatTarget(ClientID, aBuf);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment