11.05.2015, 18:01
Okay lets start
The problem is in commands
They complie without errors in game not working
im using LuxAdmin System
When i change those cmds to ZCMD no errors
but they work and admin cmds dont work !!1
Please help
i know it suck all those stuff
but need help
The problem is in commands
They complie without errors in game not working
im using LuxAdmin System
pawn Код:
//VIP go kart
dcmd_vkart(playerid,params[])
{
#pragma unused params
if(AccInfo[playerid][pVip] >= 2)
{
new Float:X,Float:Y,Float:Z,Float:Angle,vkart;
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle(playerid,Angle);
vkart = CreateVehicle(571,X,Y,Z,Angle,1,-1,-1);
new tmpobjid;
tmpobjid = CreateObject(19601,0.0000000,0.0000000,-1000.0000000,0.0000000,0.0000000,0.0000000); //
AttachObjectToVehicle(tmpobjid, vkart, 0.059, 0.799, 0.069, 0.000, 180.000, 180.000);
PutPlayerInVehicle(playerid,vkart,0);
StartTuneSound(playerid);
ChangeVehiclePaintjob(vkart,1);
SetVehicleVirtualWorld(vkart, GetPlayerVirtualWorld(playerid));
LinkVehicleToInterior(vkart, GetPlayerInterior(playerid));
SendClientMessage(playerid,yellow,"Vip go-kart suceffly Spawned");
}
return 1;
}
dcmd_vcar(playerid,params[])
{
#pragma unused params
if(AccInfo[playerid][pVip] >= 2)
{
new Float:X,Float:Y,Float:Z,Float:Angle,vcar;
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle(playerid,Angle);
vcar = CreateVehicle(550,X,Y,Z,Angle,1,-1,-1);
AddVehicleComponent(vcar, 1023);
AddVehicleComponent(vcar, 1006);
AddVehicleComponent(vcar, 1010);
AddVehicleComponent(vcar, 1019);
AddVehicleComponent(vcar, 1025);
AddVehicleComponent(vcar, 1087);
AddVehicleComponent(vcar, 1145);
new tmpobjid;
tmpobjid = CreateObject(19601,0.0000000,0.0000000,-1000.0000000,0.0000000,0.0000000,0.0000000); //
AttachObjectToVehicle(tmpobjid, vcar, 0.060, 3.000, -0.439, 360.000, 180.000, 180.000);
tmpobjid = CreateObject(19917,0.0000000,0.0000000,-1000.0000000,0.0000000,0.0000000,0.0000000); //
AttachObjectToVehicle(tmpobjid, vcar, 0.060, 1.931, -0.210, 0.000, 0.000, 0.000);
PutPlayerInVehicle(playerid,vcar,0);
StartTuneSound(playerid);
ChangeVehiclePaintjob(vcar,1);
SetVehicleVirtualWorld(vcar, GetPlayerVirtualWorld(playerid));
LinkVehicleToInterior(vcar, GetPlayerInterior(playerid));
SendClientMessage(playerid,yellow,"Vip car suceffly Spawned");
}
return 1;
}
//Weapon pack
dcmd_vweaps(playerid,params[])
{
#pragma unused params
if(AccInfo[playerid][pVip] >= 1)
{
GivePlayerWeapon(playerid,34,1000);
GivePlayerWeapon(playerid,24,1000);
GivePlayerWeapon(playerid,31,1000);
SendClientMessage(playerid,yellow,"You have used VIP weapon pack");
}
return 1;
}
but they work and admin cmds dont work !!1
Please help
i know it suck all those stuff
but need help