31.05.2010, 08:25
'Ello!
First question: When I have following commands, /admins, /admin, /adminduty, /ann, /advert and all the other shit that start with a, how can I avoid the problem of some of them not working?
Like /admins does "Announcement: ins"(/ann).
Second question:
Why does these vehicles:
Claim to be these:
All other vehicles but those 3 Spawn vehicles are named. Yet my "kick on enter if not in correct faction"-script kicks me out of the Spawn Vehicles if I ain't in the Navy(Launch's faction), and it says it's a Launch.
Third question:
Why doesn't this work? I obviously messed up but anyway. Nothing appears when I use it.
Also, could someone please edit this to spawn the vehicles with defined colors? Like /spawnveh 411 126 1, and spawn it with colors 126 and 1.
Thanks, if anyone can take care/answer of some of these.
First question: When I have following commands, /admins, /admin, /adminduty, /ann, /advert and all the other shit that start with a, how can I avoid the problem of some of them not working?
Like /admins does "Announcement: ins"(/ann).
Second question:
Why does these vehicles:
pawn Код:
AddStaticVehicle(411,2794.6809,1295.2672,10.4771,359.6819,64,1); // Spawn1 Infernus
AddStaticVehicle(411,1374.6643,2696.5872,10.5474,358.7312,112,1); // Spawn2 Infernus
AddStaticVehicle(520,1695.3934,1305.9945,10.5474,179.6371,64,1); // Spawn3 Hydra
pawn Код:
mc_launch1 = AddStaticVehicle(595, 919.67877197266, -3045.7512207031, 0.71859455108643, 260.30029296875, 4, 33); //
mc_launch2 = AddStaticVehicle(595, 918.72479248047, -3051.8100585938, 0.84959363937378, 260.30029296875, 4, 33); //
Third question:
Why doesn't this work? I obviously messed up but anyway. Nothing appears when I use it.
pawn Код:
if(!strcmp(cmdtext, "/spawnveh", true, 2))
{
if(!cmdtext[9])return SendClientMessage(playerid, COLOR_GREY, "USAGE: /spawnveh (Vehicle ID)");
if(PlayerInfo[playerid][AdminJailed] == 1)return SendClientMessage(playerid, COLOR_GREY, "You cannot use commands in Admin Jail.");
if(PlayerInfo[playerid][AdminLevel] > 2)
{
new
Float:ax, Float:ay, Float:az, Float:angle;
GetPlayerPos( playerid, ax, ay, az );
GetPlayerFacingAngle(playerid, angle);
CreateVehicle(cmdtext[10], ax+4, ay+4, az+1, angle, -1, -1, -1);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
}
}
Thanks, if anyone can take care/answer of some of these.