[RP] Scripting Engine
#7

pawn Код:
if(!strcmp(cmd, "/engine", true))
{
    if(IsPlayerConnected(playerid))
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
        new vid = GetPlayerVehicleID(playerid);
        GetVehicleParamsEx(vid,engine,lights,doors,bonnet,boot,objective);//Get the engine params
        if(engine = 1)//If the engine is on
        {
            SetVehicleParamsEx(vid,0,lights,doors,bonnet,boot,objective);//Turn off the engine
        }
        else//If the engine is off
        {
            SetVehicleParamsEx(vid,1,lights,doors,bonnet,boot,objective);//Turn on the engine
        }
Reply


Messages In This Thread
[RP] Scripting Engine - by xXGaryXx - 22.06.2011, 10:07
AW: [RP] Scripting Engine - by Nero_3D - 22.06.2011, 10:13
AW: [RP] Scripting Engine - by xXGaryXx - 22.06.2011, 10:32
Re: [RP] Scripting Engine - by PCheriyan007 - 22.06.2011, 11:54
AW: [RP] Scripting Engine - by xXGaryXx - 22.06.2011, 18:50
AW: [RP] Scripting Engine - by xXGaryXx - 22.06.2011, 18:52
Re: [RP] Scripting Engine - by =WoR=Varth - 22.06.2011, 19:21
AW: [RP] Scripting Engine - by xXGaryXx - 22.06.2011, 19:26
Re: [RP] Scripting Engine - by ricardo178 - 22.06.2011, 19:55
AW: [RP] Scripting Engine - by xXGaryXx - 22.06.2011, 20:08

Forum Jump:


Users browsing this thread: 1 Guest(s)