From 55613eb8824b4a65cda4967993be3e83306d060b Mon Sep 17 00:00:00 2001 From: Borja Ferrer Date: Fri, 27 Jan 2006 22:43:51 +0000 Subject: [PATCH] fixed bug at24752 --- dlls/cstrike/cstrike.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dlls/cstrike/cstrike.cpp b/dlls/cstrike/cstrike.cpp index 7bfcec1c..f177b681 100755 --- a/dlls/cstrike/cstrike.cpp +++ b/dlls/cstrike/cstrike.cpp @@ -386,10 +386,11 @@ static cell AMX_NATIVE_CALL cs_set_user_armor(AMX *amx, cell *params) // cs_set_ // Set armor type *((int *)pPlayer->pvPrivateData + OFFSET_ARMORTYPE) = params[3]; - if (params[3] == CS_ARMOR_KEVLAR || params[3] == CS_ARMOR_ASSAULTSUIT) { + if (params[3] == CS_ARMOR_KEVLAR || params[3] == CS_ARMOR_ASSAULTSUIT) + { // And send appropriate message - MESSAGE_BEGIN(MSG_ONE, GET_USER_MSG_ID(PLID, "ItemPickup", NULL), NULL, pPlayer); - WRITE_STRING(params[3] == CS_ARMOR_KEVLAR ? "item_kevlar" : "item_assaultsuit"); + MESSAGE_BEGIN(MSG_ONE, GET_USER_MSG_ID(PLID, "ArmorType", NULL), NULL, pPlayer); + WRITE_BYTE(params[3] == CS_ARMOR_ASSAULTSUIT ? 1 : 0); MESSAGE_END(); }