Locking to class
#5

Just for testing i've made this that if the classid is above 1 you wont be able to browse through the rest, i had it working for a second but dont know what i did wrong now..

Somebody help me


pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 1477.1437,-2410.3237,52.6302);
    SetPlayerFacingAngle(playerid, 309.0874);
    SetPlayerCameraPos(playerid, 1479.2456,-2408.4324,53.8625);
    SetPlayerCameraLookAt(playerid, 1477.1437,-2410.3237,52.5302);
   
    if(classid > 1)
    {
        return 0;
    }
   
    return 0;
}
Reply


Messages In This Thread
Locking to class - by Robbin237 - 20.04.2009, 13:02
Re: Locking to class - by Robbin237 - 20.04.2009, 16:57
Re: Locking to class - by Robbin237 - 21.04.2009, 14:09
Re: Locking to class - by Rks25 - 21.04.2009, 14:17
Re: Locking to class - by Robbin237 - 21.04.2009, 14:47
Re: Locking to class - by miokie - 21.04.2009, 15:10

Forum Jump:


Users browsing this thread: 1 Guest(s)