[Help] Max 1
#7

thank you for help but check this

i used this:

pawn Код:
new HasLeaderFBI;

dcmd_giveleaderfbi(playerid,params[])
{
    new target,string[120];
    if(HasLeaderFBI == 1) return SendClientMessage(playerid,red,"The F.B.I. has allready a leader!");
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,red,"You are NOT Authorized to use this command!");
    if(sscanf(params,"d",target)) return SendClientMessage(playerid,red,"USAGE: /giveleaderfbi [ID]");
    if(((PlayerInfo[playerid][LeaderFBI] == 1) || (PlayerInfo[playerid][LeaderVLA] == 1)) return SendClientMessage(playerid,red,"Player is allready leader of a team/family!");

    format(string,sizeof(string),"Congratz, you are now the Federal Bureau of Investigation Leader!");
    SendClientMessage(target,red,"------------------------");
    SendClientMessage(target,lightblue,string);
    SendClientMessage(target,red,"------------------------");
    PlayerInfo[playerid][LeaderFBI] = 1;
    HasLeaderFBI = 1;
    return 1;
}
but when the player disconnects? or when the game mode restarts? how can i save the HasLeaderFBI?
Reply


Messages In This Thread
[Help] Max 1 - by -Xan- - 30.07.2010, 18:20
Re: [Help] Max 1 - by -Xan- - 31.07.2010, 08:47
Re: [Help] Max 1 - by -Xan- - 31.07.2010, 20:27
Re: [Help] Max 1 - by Hijolion - 31.07.2010, 20:30
Re: [Help] Max 1 - by -Xan- - 31.07.2010, 20:34
Re: [Help] Max 1 - by Conroy - 31.07.2010, 21:15
Re: [Help] Max 1 - by -Xan- - 01.08.2010, 11:40
Re: [Help] Max 1 - by Retardedwolf - 01.08.2010, 11:46
Re: [Help] Max 1 - by -Xan- - 01.08.2010, 11:53
Re: [Help] Max 1 - by Retardedwolf - 01.08.2010, 11:55

Forum Jump:


Users browsing this thread: 1 Guest(s)