27.10.2010, 15:31
(
Последний раз редактировалось corne; 27.10.2010 в 15:46.
)
How to check in
if the username is vip, Usernames are standing here:
Код:
if (strcmp(cmd, "/vip", true) == 0)
{
if(IsPlayerAdmin(playerid))
{
tmp = strtok(cmdtext, idx);
new what[8];
strmid(what, tmp, false, strlen(cmdtext), 8);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GREY, "USAGE: /vip [Password]");
return 1;
}
if(strcmp(what, "thgLLXT1", true, strlen(what)) == 0)
{
//Here the check if Playername is vip?
}
}
}
Код:
new Vips[2][1] =
{
"Username1",
"Username2"
};

