Dammit, I added the cmds into my script... and I get no errors or warnings when compiling... but when I go IG and type the commands, "/VWarn, /VGet, /VGoto, /VKick or /V(UN)Mute" it just doesn't respond... it doesn't even tell me how to use the command... Here is the script for my command:
pawn Код:
dcmd_vget(playerid,params[])
{
if(AccInfo[playerid][pVip] >= 1)
{
if(!strlen(params)) return
SendClientMessage(playerid, LIGHTBLUE2, "Usage: /vget [PlayerID]") &&
SendClientMessage(playerid, orange, "Function: Will get the specified player");
new player1;
new string[128];
if(!IsNumeric(params))
player1 = ReturnPlayerID(params);
else player1 = strval(params);
if(AccInfo[player1][Level] >= 1)
return SendClientMessage(playerid,red,"ERROR: You cannot use this command on this player!");
if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID && player1 != playerid && (AccInfo[player1][Level] < 1))
{
SendCommandToAdmins(playerid,"VGet");
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid,x,y,z);
SetPlayerInterior(player1,GetPlayerInterior(playerid));
SetPlayerVirtualWorld(player1,GetPlayerVirtualWorld(playerid));
if(GetPlayerState(player1) == 2)
{
new VehicleID = GetPlayerVehicleID(player1);
SetVehiclePos(VehicleID,x+3,y,z);
LinkVehicleToInterior(VehicleID,GetPlayerInterior(playerid));
SetVehicleVirtualWorld(GetPlayerVehicleID(player1),GetPlayerVirtualWorld(playerid));
}
else SetPlayerPos(player1,x+2,y,z);
format(string,sizeof(string),"|- You have been Teleported! -|");
SendClientMessage(player1,blue,string);
format(string,sizeof(string),"|- You have Teleported \"%s\" to your Position -|", pName(player1));
return SendClientMessage(playerid,BlueMsg,string);
}
else return ErrorMessages(playerid, 14);
}
else return ErrorMessages(playerid, 11);
}
Where I defined it:
pawn Код:
dcmd(unlockcar,9,cmdtext);
dcmd(vget,3,cmdtext);
dcmd(givecar,7,cmdtext);
EDIT: This only shows 1 of my commands... please tell me what's wrong with it?