Jump to content
  • 0

Problema Vehicle Surf


BorneoJr

Question

Salut, am incercat sa fac ca atunci cand un jucator este pe masina si celalalt in masina sa muta playerul cu 2metri de masina, deci sa nu are posibilitatea de a sta pe masina, problema mea este ca il pune in mijlocul hartii :|

public VehicleSurfCheck()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && (GetPlayerSurfingVehicleID(i)!= INVALID_VEHICLE_ID))
        {
			new Float:cx,Float:cy,Float:cz;
			GetVehiclePos(INVALID_VEHICLE_ID, cx, cy, cz);
			SetPlayerPos(i, cx, cy+2, cz);
            SendClientMessage(i, COLOR_LIGHTRED,"* You're playing Non-Rp !");
        }
    }
    return 1;
}

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.