CGOPrintToChat(iClient, "[{GREEN}Custom Knives{DEFAULT}] This server has custom knives! Type in {LIGHTBLUE}!ck{DEFAULT} or {LIGHTBLUE}!customknife{DEFAULT} to select your knife!");
CPrintToChat(iClient, "[{GREEN}Custom Knives{DEFAULT}] This server has custom knives! Type in {LIGHTBLUE}!ck{DEFAULT} or {LIGHTBLUE}!customknife{DEFAULT} to select your knife!");
if (AreClientCookiesCached(iClient))
if (AreClientCookiesCached(iClient))
{
{
if (showMenu[iClient] == 0)
if (showMenu[iClient] == 0)
{
{
showMenu[iClient] = 1;
showMenu[iClient] = 1;
ShowKnifeMenu(iClient);
ShowKnifeMenu(iClient);
SetClientCookie(iClient, g_hMyFirstJoin, "1");
SetClientCookie(iClient, g_hMyFirstJoin, "1");
}
}
}
}
}
}
bool HasKnife(int client)
bool HasKnife(int client)
{
{
if (IsValidClient(client))
if (IsValidClient(client))
{
{
new weapon = GetPlayerWeaponSlot(client, CS_SLOT_KNIFE);
new weapon = GetPlayerWeaponSlot(client, CS_SLOT_KNIFE);