Call Car Script Help!
#6

Here you have:
pawn Код:
if (strcmp("/rcar", cmdtext, true, 10) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            new Name[MAX_PLAYER_NAME];
            GetPlayerName(playerid,Name,sizeof(Name));
            if(!strcmp(Name, "Tyler[DGZ]", true)) //Check the Player Name
            {
                new Float:X, Float:Y, Float:Z;
                GetPlayerPos(playerid, X, Y, Z);
                SetVehiclePos(1, X, Y, Z); //1 = vehicleid. || X = Position X || Y = Position Y || Z = Position Z.
                PutPlayerInVehicle(playerid, 1, 0); //1 = vehicleid || 0 = State(0 = Driver)
            }
            else
            {
                SendClientMessage(playerid,-1,"You can't use this command!");
                return 1;
            }
        }
        return 1;
    }
Reply


Messages In This Thread
Call Car Script Help! - by TyThaBomb - 21.06.2011, 11:01
Respuesta: Call Car Script Help! - by [DOG]irinel1996 - 21.06.2011, 11:05
Re: Call Car Script Help! - by TyThaBomb - 21.06.2011, 11:07
Respuesta: Call Car Script Help! - by [DOG]irinel1996 - 21.06.2011, 11:28
Re: Call Car Script Help! - by TyThaBomb - 21.06.2011, 11:39
Respuesta: Call Car Script Help! - by [DOG]irinel1996 - 21.06.2011, 11:41
Re: Call Car Script Help! - by TyThaBomb - 21.06.2011, 11:45
Respuesta: Call Car Script Help! - by [DOG]irinel1996 - 21.06.2011, 11:50
Re: Call Car Script Help! - by TyThaBomb - 21.06.2011, 11:52
Respuesta: Call Car Script Help! - by [DOG]irinel1996 - 21.06.2011, 11:53

Forum Jump:


Users browsing this thread: 1 Guest(s)