How to Use This Function
#1

Hi,
How to use bool function??
Reply
#2

pawn Код:
bool:FunctionName()
{
    return true;
}
Reply
#3

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
Reply
#4

Код:
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.");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)