16.05.2014, 16:43
I have a problem /jetpack , command is only logged to rcon.
How do you go without rcon?
How do you go without rcon?
//============================[/adeletecar]=====================================
/* if(strcmp(cmd, "/adeletecar", true) == 0)
{
if(IsPlayerAdmin(playerid))
{
CarInfo[idcar][cModel] = 0;
CarInfo[idcar][cLocationx] = (0.0); CarInfo[idcar][cLocationy] = (0.0); CarInfo[idcar][cLocationz] = (0.0); CarInfo[idcar][cAngle] = (0.0);
CarInfo[idcar][cColorOne] = 0; CarInfo[idcar][cColorTwo] = 0;
strmid(CarInfo[idcar][cOwner], "", 0, strlen(""), 999);
format(CarInfo[idcar][cDescription], 32, "");
CarInfo[idcar][cValue] = 0;
CarInfo[idcar][cOwned] = 0;
CarInfo[idcar][mod1] = 0;
CarInfo[idcar][mod2] = 0;
CarInfo[idcar][mod3] = 0;
CarInfo[idcar][mod4] = 0;
CarInfo[idcar][mod5] = 0;
CarInfo[idcar][mod6] = 0;
CarInfo[idcar][mod7] = 0;
CarInfo[idcar][mod8] = 0;
CarInfo[idcar][mod9] = 0;
CarInfo[idcar][mod10] = 0;
CarInfo[idcar][mod11] = 0;
CarInfo[idcar][mod12] = 0;
CarInfo[idcar][mod13] = 0;
CarInfo[idcar][mod14] = 0;
CarInfo[idcar][mod15] = 0;
CarInfo[idcar][mod16] = 0;
CarInfo[idcar][mod17] = 0;
CarInfo[idcar][paintjob] = 0;
// Delete3DTextLabel(TextUpCar[idcar]);
DestroyVehicle(idcar);
OnCarUpdate();
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Masina personala distrusa cu succes !");
}
else SendClientMessage(playerid, COLOR_RED, " You are not authorized to use that commad ");
return 1;
}
*/
pawn Код:
this is only the ''' if(IsPlayerAdmin(playerid)) {}''' |
if(strcmp(cmd, "/jetpack", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 4)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "You are now using Jetpack!");
SetPlayerSpecialAction(playerid,2);
return 1;
}
else
{
SendClientMessage(playerid,COLOR_GREY,"You can't use this command!");
return 1;
}
}
}
if(strcmp(cmd, "/jetpack", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_LIGHTRED, "You are now using Jetpack!");
SetPlayerSpecialAction(playerid,2);
return 1;
}
}
Try
PHP код:
|
if(strcmp(cmd, "/jetpack", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 1)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "You are now using Jetpack!");
SetPlayerSpecialAction(playerid,2);
return 1;
}
else
{
SendClientMessage(playerid,COLOR_GREY,"You can't use this command!");
return 1;
}
}
}
if (PlayerInfo[playerid][pAdmin] >= 1)