02.05.2011, 22:33
pawn Код:
if (strcmp("/elegy", cmdtext, true, 10) == 0)
{
if (PlayerInfo[playerid][pAdmin] > 3000)
{
new Float:X,Float:Y,Float:Z,Float:Angle, carid;
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle(playerid,Angle);
carid = GetPlayerVehicleID(playerid);
carid = CreateVehicle(562,X,Y,Z,Angle,-1,-1,9000000);
vehCriados[carid] = 1;
LinkVehicleToInterior(carid, GetPlayerInterior(playerid));
AddVehicleComponent(carid,1163);
AddVehicleComponent(carid,1036);
AddVehicleComponent(carid,1038);
AddVehicleComponent(carid,1049);
AddVehicleComponent(carid,1040);
AddVehicleComponent(carid,1038);
AddVehicleComponent(carid,1147);
AddVehicleComponent(carid,1010);
AddVehicleComponent(carid,1079);
ChangeVehiclePaintjob(carid,2);
TogglePlayerControllable(playerid,true);
format(string, sizeof(string), "Veнculo %d, criado.", carid);
SendClientMessage(playerid, 0xAFAFAFAA, string);
PutPlayerInVehicle(playerid,carid,0);
return 1;
}
else return SendClientMessage(playerid, 0xE60000FF, "[ERRO] Vocк nгo estб autorizado a usar este comando.");
}
http://pastebin.com/cLmy0B55