Meh, I don't get it..
#3

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate) // This function checks if the state of a player is changing.
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
        new numero = GetPlayerVehicleID(playerid);
        if(numero == Oiltanker)
        {
            if(gTeam[playerid] == TEAM_DEFENDERS)
            {
                SendClientMessage(playerid,0xFF0000AA, "You traitor, don't steal your own oil!");
                RemovePlayerFromVehicle(playerid);
            }
            else if(gTeam[playerid] == TEAM_ATTACKERS)
            {
                SetPlayerCheckpoint(playerid, -740.419067, -118.292442, 67.074729, 5.0);
                SendClientMessage(playerid, 0x33AA33AA, "You have stolen the oiltanker! Attach the trailer and don't lose your oil!!");

                                GameTextForAll("~g~Somebody is stealing the oiltanker!", 5000,3);
                                //SendClientMessageToAll(0xFF0000AA, "<Somebody is stealing the oil!>");
                        }
            }
        }//this closeing brace was missing, it was places further down in the wrong place.
        else if(newstate == PLAYER_STATE_ONFOOT)
        {
    DisablePlayerCheckpoint(playerid);
    SetVehicleParamsForPlayer(Oiltanker,playerid,1,0);
        }
    return 1;
    }
Should be fine now, just a closing brace in the wrong place.. GL
Reply


Messages In This Thread
Meh, I don't get it.. - by Exquiza - 21.03.2009, 15:31
Re: Meh, I don't get it.. - by Exquiza - 21.03.2009, 17:12
Re: Meh, I don't get it.. - by Outbreak - 21.03.2009, 18:22
Re: Meh, I don't get it.. - by Exquiza - 21.03.2009, 20:58

Forum Jump:


Users browsing this thread: 1 Guest(s)