ADMINCAR!!!
#2

PHP код:
CMD:admincar(playeridparams[])
{
    
i(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playeridCOLOR_RED"You are not logged in!");
    if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playeridCOLOR_RED"You are not an admin");
    if(
sscanf(params"d"carid)) return SendClientMessage(playeridCOLOR_RED"/admincar (carid)");
    new 
Pos[3];
    
GetPlayerPos(playeridPos[0], Pos[1], Pos[2]);
    new 
admincar CreateVehicle(caridPos[0], Pos[1], Pos[2], 18000, -10);
    
SendClientMessage(playeridCOLOR_RED"Car spawned!");
    
SetVehicleNumberPlate(admincar"Admin");

I've just made this command for you just because you are a beginner i see, This car won't respawn if destroyed..
Reply


Messages In This Thread
ADMINCAR!!! - by BrnX - 09.09.2017, 21:30
Re: ADMINCAR!!! - by JasonRiggs - 09.09.2017, 21:43
Re: ADMINCAR!!! - by BrnX - 09.09.2017, 21:53
Re: ADMINCAR!!! - by BrnX - 09.09.2017, 22:01
Re: ADMINCAR!!! - by Kane - 09.09.2017, 22:13
Re: ADMINCAR!!! - by BrnX - 09.09.2017, 22:27
Re: ADMINCAR!!! - by Kane - 09.09.2017, 22:30
Re: ADMINCAR!!! - by BrnX - 09.09.2017, 22:34

Forum Jump:


Users browsing this thread: 2 Guest(s)