A glitch [+rep for helper.]
#1

http://pastebin.com/iFjFpFFR

So this is my script.
I've got a problem that I'm trying to fix over 5 hours and I don't succeed at all.
So here's the problem.
I enter the server, I get the pm that I need to read the rules, help, cmds and stuff and then I need to choose my team, of course I go as a spectator to Red County. As I choose the team I should be teleported to choose class, at least I think I made the script like that. But I don't I just stay there as a spectator in Red County and nothing happens, all cmds work. can somebody help me?
Reply
#2

Help, anybody!?
Reply
#3

Nobody wants to help me .-.
Reply
#4

You need to set the camera behind the player after you set it away from him.

You need to add

Код:
SetCameraBehindPlayer(playerid);
to the beginning of OnPlayerSpawn();
Reply
#5

Just a suggestion
Код:
public OnPlayerSpawn(playerid)
{
    if(gPlayerClass[playerid] == GROVE) 
    {
        SetPlayerPos(playerix, FLOAT:X, FLOAT:Y, FLOAT:Z);
        SetPlayerFacingAngle(palyerid, FLOAT:ANGLE);
        SetCameraBehindPlayer(playerid);
        TogglePlayerControllable(playerid, 1);
        ResetPlayerWeapons(playerid);
        GivePlayerWeapon(playerid, 31, 1000);//m4
        GivePlayerWeapon(playerid, 25, 1000);//mp5
        GivePlayerWeapon(playerid, 24, 7000);//deagle
    }
Reply
#6

Reynolds and that's all I've got to do?
Reply
#7

It didn't fix the bug. The bug is still there.
Reply
#8

Tried everything and matyi10012's fix and Reynold's fix. Doesn't work
Reply
#9

This one is correct SetCameraBehindPlayer(playerid); and you need to spawn player after dialog...
Reply
#10

1. You are using dialogid 999 in ShowPlayerDialog(playerid, 999, and then if you choose a class dialogid is not if(dialogid == DIALOG_TEAM)

2. You need SetPlayerPos for each team and SetSpawnInfo or SetPlayerSkin?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)