01.04.2012, 14:16
Hi all. Pls anyone make me simple command for /warn admin level 1 and /car level 2 !!!
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;
}
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;
}
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.