Need help with LuxAdmin vip system!!!!
#1

Okay lets start
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;
}
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
Reply
#2

Did you define them?

Like under OnPlayerCommandText :

Код:
dcmd(vkart, 5, cmdtext);
dcmd(vweaps, 6, cmdtext);
dcmd(vcar, 4, cmdtext);
Reply
#3

yes i did
Reply
#4

Quote:
Originally Posted by Toxik
Посмотреть сообщение
yes i did
What are you getting in game?

*Error?
*Message saying you don't have enough level?
*Unknown command?
Reply
#5

*Unknown command
Reply
#6

Quote:
Originally Posted by Toxik
Посмотреть сообщение
*Unknown command
Mind to show where did you defined?

3 of the commands.
Reply
#7

OnPlayerCommandText
Reply
#8

Quote:
Originally Posted by Toxik
Посмотреть сообщение
OnPlayerCommandText
Yeah, That's right.

But where did you defined those commands?
Reply
#9

i didnt #define em
i just copyed from admin system the codes and added few mine up

and added
"OnPlayerCommandText"
Like ...
dcmd(vkart, 5, cmdtext);
dcmd(vweaps, 6, cmdtext);
dcmd(vcar, 4, cmdtext);
Reply
#10

Quote:
Originally Posted by Toxik
Посмотреть сообщение
i didnt #define em
i just copyed from admin system the codes and added few mine up

and added
"OnPlayerCommandText"
Like ...
dcmd(vkart, 5, cmdtext);
dcmd(vweaps, 6, cmdtext);
dcmd(vcar, 4, cmdtext);
Should work mate, Try to compile it by opening pawno.exe > Your Script.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)