Hey, I'm making a plugin that every round gives various classes to players randomly. so I've got a Sniper class, and I want to make that if Player gets Sniper class he would be slower.
Here is my plugin right now, I havn't tested it yet, but I'm sure -speed would work only until you change your weapon.
PHP Code:
if(PlayerMode[id] == Sniper)
{
new Float:speed = get_user_maxspeed(id) - 30.0;
set_user_maxspeed(id , speed);
give_item(id, "weapon_awp");
give_item(id,"ammo_338magnum");
give_item(id,"ammo_338magnum");
give_item(id,"ammo_338magnum");
}