Communication between Filterscript and GameMode
#10

pawn Код:
if(strcmp(cmdtext, "/lvl 1 license", true) == 0)
{
    CallRemoteFunction("SetPlayerLicense", "dd", playerid, randomnumber);
    SendClientMessage(playerid, color, "You just got a level 1 license");
    return 1;
}

if(strcmp(cmdtext, "/license", true) == 0)
{
    new license = CallRemoteFunction("GetPlayerLicense", "d", playerid);
    new str[128];
    format(str, 128, "Your license level: %d", license);
    SendClientMessage(playerid, color, str);
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)