SA-MP Forums Archive
/warn /car command help! [REP+] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /warn /car command help! [REP+] (/showthread.php?tid=330459)



/warn /car command help! [REP+] - [FoR]EveR - 01.04.2012

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


Re: /warn /car command help! [REP+] - Jack.7331 - 01.04.2012

What's /car supposed to do?


Re: /warn /car command help! [REP+] - antonio112 - 01.04.2012

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;
}



Re: /warn /car command help! [REP+] - [FoR]EveR - 01.04.2012

/car name/id color1 color2
maybe


Re: /warn /car command help! [REP+] - antonio112 - 01.04.2012

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;
}



Re: /warn /car command help! [REP+] - [FoR]EveR - 01.04.2012

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.



Re: /warn /car command help! [REP+] - antonio112 - 01.04.2012

You don't have YCMD or ZCMD include...


Re: /warn /car command help! [REP+] - [FoR]EveR - 01.04.2012

YCMD i using DCMD! but i add ladmin4v2 ty for help !


Re: /warn /car command help! [REP+] - D3XT3R - 01.04.2012

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


Re: /warn /car command help! [REP+] - fiki574 - 01.04.2012

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!