Scripting command(s)
#3

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if (
strcmp("/offduty"cmdtexttrue5) == 0)
    {
SendClientMessage(playerid,0xFFFFFF,"You're now an off-duty cop.");
        
format(fstrsizeof(fstr), "%s [%d] is now an off-duty cop."GetName(playerid), playeridGetName(targetid), targetidreason);
        
SendClientMessageToAll(0xFF0000FF,fstr);
        }
     return 
0;
}
public 
OnPlayerCommandText(playeridcmdtext[])
{
    if (
strcmp("/onduty"cmdtexttrue5) == 0)
    {
SendClientMessage(playerid,0xFFFFFF,"You're now an on-duty cop.");
        
format(fstrsizeof(fstr), "%s [%d] is now an on-duty cop."GetName(playerid), playeridGetName(targetid), targetidreason);
        
SendClientMessageToAll(0xFF0000FF,fstr);
        }
     return 
0;

Reply


Messages In This Thread
Scripting command(s) - by Wrench - 01.01.2017, 14:51
Respuesta: Scripting command(s) - by Goncho28 - 01.01.2017, 15:00
Re: Scripting command(s) - by Loinal - 01.01.2017, 15:01
Re: Scripting command(s) - by Wrench - 01.01.2017, 15:09
Re: Scripting command(s) - by saffierr - 01.01.2017, 16:27
Re: Scripting command(s) - by Codeah - 01.01.2017, 16:28

Forum Jump:


Users browsing this thread: 4 Guest(s)