/warn /car command help! [REP+]
#1

Hi all. Pls anyone make me simple command for /warn admin level 1 and /car level 2 !!!
Reply
#2

What's /car supposed to do?
Reply
#3

I suppose /car should spawn a vehicle?

pawn Код:
YCMD:car(PARAMS)
{
    #pragma unused help
    new vxModel, Float:Pos[4];
    if(sscanf(params, "i", vxModel))
        return SendClientMessage(playerid, -1, "Usage: /car[Model]");

    GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
    GetPlayerFacingAngle(playerid, Pos[3]);

    new cCar = CreateVehicle(vxModel, Pos[0], Pos[1], Pos[2], Pos[3], 0, 0, -1);
    PutPlayerInVehicle(playerid, cCar, 0);
    return 1;
}
Reply
#4

/car name/id color1 color2
maybe
Reply
#5

I suppose /car should spawn a vehicle?

pawn Код:
YCMD:car(PARAMS)
{
    #pragma unused help
    new vxModel, Float:Pos[4], col1, col2;
    if(sscanf(params, "iii", vxModel, col1, col2))
        return SendClientMessage(playerid, -1, "Usage: /car[Model] Color1 Color2");

    if(col1 < 0 || col2 < 0 || col1 > 126 || col2 > 126)
        return SendClientMessage(playerid, -1, "Invalid color ID.");
 
    GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
    GetPlayerFacingAngle(playerid, Pos[3]);

    new cCar = CreateVehicle(vxModel, Pos[0], Pos[1], Pos[2], Pos[3], col1, col2, -1);
    PutPlayerInVehicle(playerid, cCar, 0);
    return 1;
}
Reply
#6

pawn Код:
C:\Documents and Settings\rado\Desktop\Trucking Server 0.3d\gamemodes\Trucking.pwn(4557) : warning 203: symbol is never used: "car"
C:\Documents and Settings\rado\Desktop\Trucking Server 0.3d\gamemodes\Trucking.pwn(4557 -- 4574) : warning 203: symbol is never used: "warn"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Warnings.
Reply
#7

You don't have YCMD or ZCMD include...
Reply
#8

YCMD i using DCMD! but i add ladmin4v2 ty for help !
Reply
#9

Ye Avi Is epic Fail he is a Good Copy cat!!
Reply
#10

Hello!

Avi57, have you asked me for permissions to copy/paste part(s) of my script and ask a rep for it? No, dont think so! Stop copy/pasting or I will report you to mods! Thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)