Need help with a script part.
#10

pawn Code:
CMD:dutyon(playerid,params[])
{
    if(groupVariables[playerVariables[playerid][pGroup]][gGroupType] == 1 && playerVariables[playerid][pGroup] != 0)
    {
        new string[64];
        if(IsPlayerInRangeOfPoint(playerid, 5, 264.1055,109.8094,1004.6172) && GetPlayerInterior(playerid) == 10)
        {
            SendClientMessage(playerid, COLOR_GREY, "Turned your duty to [ON]");
            format(szMessage, sizeof(szMessage), "(Group) "EMBED_WHITE"%s is now on duty..", szPlayerName);
            SendToGroup(playerVariables[playerid][pGroup], COLOR_GENANNOUNCE, szMessage);// Try to use it like this or show me SendToGroup public function!
            SetPlayerColor(playerid,COLOR_BLUE); // << ";" This is called a Semicolor
        }
    }
    return 1;
}
Reply


Messages In This Thread
Need help with a script part. - by Lorenzo! - 02.02.2012, 14:09
Re: Need help with a script part. - by milanosie - 02.02.2012, 14:10
Re: Need help with a script part. - by Lorenzo! - 02.02.2012, 14:16
Re: Need help with a script part. - by Vince - 02.02.2012, 14:17
Re: Need help with a script part. - by milanosie - 02.02.2012, 14:18
Re: Need help with a script part. - by Hoss - 02.02.2012, 14:30
Re: Need help with a script part. - by Lorenzo! - 02.02.2012, 14:30
Re: Need help with a script part. - by Vince - 02.02.2012, 14:34
Re: Need help with a script part. - by -ExG-VirusKiller - 02.02.2012, 14:36
Re: Need help with a script part. - by Ballu Miaa - 02.02.2012, 14:44
Re: Need help with a script part. - by PrawkC - 02.02.2012, 14:50

Forum Jump:


Users browsing this thread: 2 Guest(s)