[FS] /nos for admin -
Spadacio - 10.04.2010
Код:
//--------------------------------[Nos]---------------------------------------------------
if(strcmp(cmd, "/nos", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 1337)
{
SendClientMessage(playerid, COLOR_LIGHTGREEN, " You are not authorized to use that command! !");
return 1;
}
if(IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
SendClientMessage(playerid, COLOR_LIGHTGREEN, "Nos installed from car!");
}
}
return 1;
}
Installed nos x10 for car
Re: [FS] /nos for admin -
Lorenc_ - 11.04.2010
Pretty basic but alright! good job.
Re: [FS] /nos for admin -
Ballu Miaa - 03.05.2010
i Try to add it ....
But seriously ama big nub in scripting so can u help me?
I want to add dis cmd in my RP server for Owner which is admin level=6....
So please code one for me and please tell me where and how to add it
Help will be appreciated alot...Please helpme
Re: [FS] /nos for admin -
aircombat - 03.05.2010
ok Topic Poster : this command wouldn't work cause u have to post the stock of the padmin and admin levels...
Re: [FS] /nos for admin -
DarkPower - 03.05.2010
You also can make.....
pawn Код:
if(strcmp(cmd, "/nos", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerAdmin(playerid)
{
SendClientMessage(playerid, COLOR_LIGHTGREEN, " You are not authorized to use that command! !");
return 1;
}
if(IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
SendClientMessage(playerid, COLOR_LIGHTGREEN, "Nos installed from car!");
}
}
return 1;
}
Because
Код:
if(PlayerInfo[playerid][pAdmin] < 1337)
will work just for GF/RPG but my will work for ALL RCON admins
Re: [FS] /nos for admin -
Torran - 03.05.2010
pawn Код:
if(strcmp(cmdtext, "/nos", true) == 0)
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000FF, "You need to be admin");
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFF0000FF, "You need to be in a vehicle");
AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
return 1;
}
Your code however was took of a RP script by the looks of it
This is the best possible way to do it,
It dosent use alot of lines
Re: [FS] /nos for admin -
DarkPower - 03.05.2010
Quote:
Originally Posted by Joe Torran C
pawn Код:
if(strcmp(cmdtext, "/nos", true) == 0) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000FF, "You need to be admin"); if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFF0000FF, "You need to be in a vehicle");
AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); return 1; }
Your code however was took of a RP script by the looks of it
|
I say him that too, i make for RCON too but your code is shortly and better
Re: [FS] /nos for admin -
tiago-99 - 03.05.2010
Basic and Good!
Re: [FS] /nos for admin -
Panoulis - 03.05.2010
Good work ! Easy & Simple to make ...
Re: [FS] /nos for admin -
Ballu Miaa - 03.05.2010
I still cannot use it...Please someone helpme...Am i adding or corrent or not.Please if someone got Teamviewer so plz come on msn and we will talk so dat u can edit it please
??
Someone please help or ill Die.....