Call Car Script Help!
#8

What's the error?
It must look like here:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    //Command Start Here
    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;
    }
    //Command Finish Here
    return 0;
}
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: 3 Guest(s)