OnPlayerStateChange problem.........
#1

I made this Text that should appear when the player enters the car as Driver.
Somehow I can't make this Text script:
pawn Код:
new coVehicle = GetPlayerStreamVehicleID(playerid);
    if(GetCreatorID(coVehicle)!=0)
    {
        if (strmatch(VehicleSystem[GetCreatorID(coVehicle)][owner],Spielername(playerid)))
        {
            new ex[128];
            format(ex,sizeof(ex),"[ Vehicle Owner: %s ]",VehicleSystem[GetCreatorID(coVehicle)][owner]);
            SendClientMessage(playerid,COLOR_YELLOW,ex);
        }
        else if(strmatch(VehicleSystem[GetCreatorID(coVehicle)][owner],"dealercar"))
        {  
            if(!IsPlayerAdmin(playerid)){ TogglePlayerControllable(playerid,0); }
            new fffx[128];
            format(fffx,sizeof(fffx),"This Vehicle is for Sale. Price %d$",VehicleSystem[GetCreatorID(coVehicle)][preis]);
            SendClientMessage(playerid,COLOR_WHITE,fffx);
            SendClientMessage(playerid,COLOR_YELLOW,"Use /buyveh to Buy it.");
        }
        else
        {
            new ex[128];
            format(ex,sizeof(ex),"[ Vehicle Owner: %s ]",VehicleSystem[GetCreatorID(coVehicle)][owner]);
            SendClientMessage(playerid,COLOR_YELLOW,ex);
        }
    }
Show when the player enters the Car that Belongs to the System....

Here is the full OnPlayerStateChange
http://pastebin.com/d3ccb4762

Please help
Tried almost anything that Came to my mind on how to make it work
Reply


Messages In This Thread
OnPlayerStateChange problem......... - by Castle - 30.03.2009, 14:46
Re: OnPlayerStateChange problem......... - by tom_jonez - 30.03.2009, 19:01
Re: OnPlayerStateChange problem......... - by Castle - 31.03.2009, 05:34
Re: OnPlayerStateChange problem......... - by Castle - 31.03.2009, 11:22

Forum Jump:


Users browsing this thread: 1 Guest(s)