if(!strcmp(cmdtext,"/check"))
{
if(random(2) == 0) SendClientMessage(playerid, -1, "VALID");
else SendClientMessage(playerid, -1, "UNVALID");
return 1;
}
//add to top of script new unvalid; //add under onplayer command. if (strcmp("/check", cmdtext, true, 10) == 0) { if(unvalid[playerid] <= 2) { unvalid = unvalid+1; SendClientMessage(playerid, blue,"Valid"); } else { unvalid = 0; SendClientMessage(playerid, red, "Unvalid"); } return 1; } |
////Frisk System
CMD:checkid(playerid, params[])
{
new ID;
if (sscanf(params, "u", ID)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "Usage: /Checkid [ID]");
new playername[24];
new string[128];
for (new i=0;i<13;i++)
{
SendClientMessage(playerid, COLOR_GREY, "-------------------------------------------------------------------------------------------------");
GetPlayerName(ID, playername,sizeof(playername));
format(string,sizeof(string),"Name: %s ", playername);
SendClientMessage(playerid, COLOR_GREY, string);
if(random(8) == 0) SendClientMessage(playerid, COLOR_GREY, "License Status: VALID");
else SendClientMessage(playerid, -1, "License Status: UNVALID");
SendClientMessage(playerid, COLOR_GREY, "-------------------------------------------------------------------------------------------------");
}
return 1;
}