09.03.2013, 22:07
Not tested!
pawn Код:
// top of script
new
bool: Requested[ MAX_PLAYERS ] = false
;
CMD:request( playerid )
{
if( Requested[ playerid ] == true )
{
SendClientMessage( playerid, -1, "You already requested" );
}
else
{
Requested[ playerid ] = false;
}
return 1;
}
CMD:setmember(playerid, params[])
{
new id;
if(gsfmember[playerid] < 2) return SendClientMessage(playerid, 0xFF000000, "You cannot use this command");
if(sscanf(params,"u", id)) return SendClientMessage(playerid, 0xFFFFFF00, "USAGE:/setmember [id]");
if(Requested[ id ] == false)
{
SendClientMessage(id, 0x99FF0000, "~You have been made a member of Grove Street Families~");
SendClientMessage(playerid, 0x99FF0000, "Member have been set!");
gsfmember[id] = 1;
}
return 1;
}