07.01.2015, 06:34
So i am using lux admin system and i am wanting to add an "Force a player to read the rules command" lux is dcmd i looked on ******...no luck :P please anyone
dcmd_forcerules(playerid, params[])
{
new targetID;
if(! sscanf(params, "u", targetID))
{
if(IsPlayerConnected(targetID))
{
ShowPlayerRules(targetID); // you have manage to make your own stock function, this one is just an example
}
}
return true;
}
dcmd_forcerules(playerid, params[])
{
new tmp[128], idx;
tmp = strtok(params, idx);
new targetID = strval(tmp);
if(IsPlayerConnected(targetID))
{
ShowPlayerRules(targetID); // you have manage to make your own stock function, this one is just an example
}
return true;
}
stock ShowPlayerRules(playerid)
{
//your rules system here, pretty simple!
return true;
}