Command to spawn cars
#8

Quote:
Originally Posted by KennethHoegh
Sure - But im also looking for someone to teach me the "basic" commands (as you sar /car gives you an Infernus.) But i cant find any. :/
pawn Код:
if (!strcmp (cmdtext,"/infernus", true))
    {
        if(IsPlayerAdmin(playerid)) //Is the player rcon admin?
        {
            if(!IsPlayerInAnyVehicle(playerid) //the "!" means that if "IsPlayerInVehicle" returns false, the code will execute, if not, the return code will.
            {
                //car spawn code, ironicly this is the only thing i don't know :D lol :< maybe someone else can fill it in
            }
            return SendClientMessage(playerid,0xFF0000FF,"You are already in a vehicle!"); //If the player already is in a vehicle, this will happen
        }
        return SendClientMessage(playerid,0xFF0000FF,"Access denied!"); //If the player wasn't logged in to rcon, this happens.
    }
i'm not a pawn king, but i know some :P

just correct me if i did something wrong

I also wrote it directly on the forum.
Reply


Messages In This Thread
Command to spawn cars - by KennethHoegh - 15.04.2009, 18:55
Re: Command to spawn cars - by HB - 15.04.2009, 19:01
Re: Command to spawn cars - by KennethHoegh - 15.04.2009, 19:06
Re: Command to spawn cars - by Pyrokid - 15.04.2009, 21:33
Re: Command to spawn cars - by Weirdosport - 16.04.2009, 00:23
Re: Command to spawn cars - by KennethHoegh - 16.04.2009, 06:59
Re: Command to spawn cars - by hanzen - 16.04.2009, 09:37
Re: Command to spawn cars - by Coolman12 - 16.04.2009, 10:10
Re: Command to spawn cars - by Metorea - 16.04.2009, 10:24

Forum Jump:


Users browsing this thread: 3 Guest(s)