SA-MP Forums Archive
[Solved]<DELETE> - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Solved]<DELETE> (/showthread.php?tid=106968)



[Solved]<DELETE> - Tigerbeast11 - 07.11.2009

pawn Код:
public OnPlayerEnterVehicle(playerid,vehicleid,ispassenger)
{
    new veh = GetPlayerVehicleID(playerid);
    new Float:x,Float:y,Float:z = GetPlayerPos(playerid,x,y,z);

    for(new i;i<MAX_PLAYERS<i++;)
    {
        if(IsPlayerInVehicle(i,veh) && GetPlayerState(i) == PLAYER_STATE_DRIVER)
        {
            if(GetPlayerTeam(i) == GetPlayerTeam(playerid))
            {
                SetPlayerPos(playerid,x,y,z+15);
                                SetPlayerHealth(playerid,0);
                SendClientMessage(playerid,COLOR_ORANGE,"Server: Do not jack team vehicles!");
            }
        }
    }
    return 1;
}

{
    if(vehicleid == Car)
    {
      SendClientMessage(playerid,COLOR_ORANGE,"Server: You have the car! Take it back to base!");
    }
    return 1;
}
How can i put this another way?? This way gives me eroors


Re: [Solved]<DELETE> - Correlli - 07.11.2009

Post them.


Re: [Solved]<DELETE> - Tigerbeast11 - 07.11.2009

Thnx for reply, but I solved it....