Help PLZ - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help PLZ (
/showthread.php?tid=295307)
Help PLZ -
mineralo - 05.11.2011
hi, I making my server rpg mode, and I have a problem with bank time, plz help me
Код:
forward TimeUpdate();
public TimeUpdate()
{
worldTime++;
worldTime%=24;
SetWorldTime(worldTime);
minutes=2;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(ShitInfo[i][pBank] == 1)
{
if(worldTime==6 && minutes==0 && seconds == 1)
{
GivePlayerECash(i,15);
PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0);
SendClientMessage(i,COLOR_GREEN, "(!) QUEST 1 COMPLETED REWARD: ");
SendClientMessage(i,COLOR_YELLOW, "(!) +15 ");
return 1;
}
}
}
}
return 1;
}
forward TimeUpdate2();
public TimeUpdate2()
{
seconds++;
seconds%=60;
return 1;
}
just doesn't work
Re: Help PLZ -
mineralo - 06.11.2011
nobody can help me?
Re : Help PLZ -
Alvin007 - 06.11.2011
What's the problem exactly ?
Re: Re : Help PLZ -
mineralo - 06.11.2011
Quote:
Originally Posted by Alvin007
What's the problem exactly ?
|
when you're in bank at 06:00 you don't get money ( ecash ) and message which should show you got it