Helpp ! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Helpp ! (
/showthread.php?tid=313350)
Helpp ! -
Zxdsl - 25.01.2012
Only Admin Can Use It AnyOne Make It , EveryOne Can Use It ??
:
Код:
CMD:lvehicle(playerid,params[]) {
#pragma unused params
if(PlayerInfo[playerid][Level] >= 2 || instunt[playerid] == 1) {
if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_RED,"ERROR: You already have a car.");
else {
ShowPlayerDialog( playerid, DIALOGID3+24, DIALOG_STYLE_LIST, "Vehicle Types", "Airplanes\nHelicopters\nBikes\nConvertibles\nIndustrial\nLowriders\nOff Road\nPublic Service Vehicles\nSaloons\nSport Vehicles\nStation Wagons\nBoats\nTrailers\nUnique Vehicles\nRC Vehicles", "Select", "Cancel" );
return 1;
}
} else return SendClientMessage(playerid,COLOR_RED,"ERROR: You are not a high enough level to use this command");
}
Re: Helpp ! -
milanosie - 25.01.2012
DUDE! English!!!!
Re: Helpp ! -
Konstantinos - 25.01.2012
Replace this
pawn Код:
if(PlayerInfo[playerid][Level] >= 2 || instunt[playerid] == 1)
To
pawn Код:
if(PlayerInfo[playerid][Level] >= 2)
Else if you mean Rcon Admin
pawn Код:
if(IsPlayerAdmin(playerid))
Re: Helpp ! -
Zxdsl - 25.01.2012
Dwawn , i want to make It , EveryOne Can Use It >...
Re: Helpp ! -
milanosie - 25.01.2012
...
omg..
Just remove the IsPlayerAdmin...
Re: Helpp ! -
Konstantinos - 25.01.2012
"Only Admin Can Use It AnyOne Make It"
From the English I know, I understand to make it only for Admins. Lol!
Here.
pawn Код:
CMD:lvehicle(playerid,params[])
{
if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_RED,"ERROR: You already have a car.");
else {
ShowPlayerDialog( playerid, DIALOGID3+24, DIALOG_STYLE_LIST, "Vehicle Types", "Airplanes\nHelicopters\nBikes\nConvertibles\nIndustrial\nLowriders\nOff Road\nPublic Service Vehicles\nSaloons\nSport Vehicles\nStation Wagons\nBoats\nTrailers\nUnique Vehicles\nRC Vehicles", "Select", "Cancel" );
return 1;
}
}