How to Use This Function - 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: How to Use This Function (
/showthread.php?tid=635310)
How to Use This Function -
akib - 05.06.2017
Hi,
How to use bool function??
Re: How to Use This Function -
CheezIt - 05.06.2017
pawn Код:
bool:FunctionName()
{
return true;
}
Re: How to Use This Function -
akib - 05.06.2017
Quote:
Originally Posted by CheezIt
pawn Код:
bool:FunctionName() { return true; }
|
if u kindly show an example like this:
Код:
if(!IsPlayerLeader) return Something
if(IsPlayerLeader)
{
return 1;
}
like those codes
Re: How to Use This Function -
GTLS - 05.06.2017
Код:
bool:IsPlayerServerAdmin(playerid)
{
if(Player[playerid][pAdminLevel] >=1) return true;
return false;
}
Код:
//Somewhere in your code,
if(IsPlayerServerAdmin(playerid)) return SCM(playerid, COLOR, "You are Admin.");