Kod:
public scoreandmoneychange()
{
new players[32],inum,para;
get_players(players,inum);
for(new i;i<inum;i++)
{
cs_set_user_money(players[i], 0, 1);
para = get_cvar_num("mp_startmoney");
cs_set_user_money(players[i], para, 1);
switch(cs_get_user_team(players[i]))
{
case CS_TEAM_CT:
{
strip_user_weapons(players[i]);
give_item(players[i], "weapon_knife");
give_item(players[i], "weapon_usp");
give_item(players[i],"ammo_45acp");
give_item(players[i],"ammo_45acp");
}
case CS_TEAM_T:
{
strip_user_weapons(players[i]);
give_item(players[i], "weapon_knife");
give_item(players[i], "weapon_glock18");
give_item(players[i],"ammo_9mm");
give_item(players[i],"ammo_9mm");
}
}
}
}
Kod:
cs_set_user_money(players[i], 0, 1);
para = get_cvar_num("mp_startmoney");
cs_set_user_money(players[i], para, 1);
Sorunu çözebilecek var mı acaba?