how to save respect
#1

Код:
new RespectTimer[MAX_PLAYERS];
forward RespectUpdate(playerid);

public OnPlayerConnect(playerid)
{
 * * * *RespectTimer[playerid] = SetTimerEx("RespectUpdate", 60000 * 5, 1, "i", playerid);
 * * * *return 1;
}

public OnPlayerDisconnect(playerid)
{
 * * * *KillTimer(RespectTimer[playerid]);
 * * * *return 1;
}

public RespectUpdate(playerid)
{
 * * * *SetPVarInt(playerid, "p_Respect", GetPVarInt(playerid, "p_Respect")+1);
 * * * *return 1;
}

if(strcmp(cmdtext, "/buylevel", true, 12)) 
{
 * * * *if(GetPVarInt(playerid, "p_Respect") >= 10)
 * * * *{
 * * * * * * * *SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
 * * * * * * * *SendClientMessage(playerid, 0xFFFFFFAA, "SERVER: You buyed now level.");
 * * * *}
 * * * *else
 * * * *{
 * * * * * * * *return SendClientMessage(playerid, 0xFFFFFFAA, "SERVER: Dont have respect to buy next level.");
 * * * *}
 * * * *return 1;
}
work thus respect and Level but I wonder how do I save time and respektite while to come a new respect so when you turn off the game and recently in January to run my timer continues where it stopped, levels should not Stores ...

greeting
Reply


Messages In This Thread
how to save respect - by mariokumanovac - 10.07.2010, 12:59
Re: how to save respect - by Lorenc_ - 10.07.2010, 13:11
Re: how to save respect - by mariokumanovac - 10.07.2010, 13:20
Re: how to save respect - by Lorenc_ - 10.07.2010, 13:29
Re: how to save respect - by mariokumanovac - 10.07.2010, 14:00

Forum Jump:


Users browsing this thread: 2 Guest(s)