how to SendClientMessage if player is cop and try to rob
#3

PHP код:
#define SendClientMessage SCM
public OnPlayerEnterDynamicCP(playeridcheckpointid
{
    if(
gTeam == TEAM_ROBBER)
    {
    if(
checkpointid == CP_tatoo) return SCM(playerid, -1"{f59f95}Type {F45f95}/robstore {f59f95}to start a robbery!");
    }
    else
    {
    if(
gTeam == TEAM_COP) return SCM(playerid, -1,"{f00f00}[ERROR] {FFFFFF}You aren't able to rob because you're a LEO!");
    }
    return 
1;
}

I didn't tested it, but hopefully it's right.

EDITED!!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)