SA-MP Forums Archive
/Call 112 in 60 seconds - 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: /Call 112 in 60 seconds (/showthread.php?tid=513226)



/Call 112 in 60 seconds - nedisor - 15.05.2014

Hello everyone! I am looking for a script or timer. I found some timers but it never stops. I want to create a script for onplayerdeath. When player X kill player Y, player Y have 60 seconds to use /call 112 and automatically player X get a new wanted level...

Код:
YCMD:call(playerid, params[], help)
{
	#pragma unused help
	#pragma unused params
	if(killerid == INVALID_PLAYER_ID) 
        {
        }
	else
	{
            new killerwantedlevel;
            killerwantedlevel = GetPlayerWantedLevel(killerid);
	    killerwantedlevel ++;

	    if(killerwantedlevel >= 6)
	    {
                  SetPlayerWantedLevel(killerid, 6);
            }
	    else
	    {
                  SetPlayerWantedLevel(killerid, killerwantedlevel);
            }
         }
}
I am not sure if it's working... I am newbee in pawno. I want to create a RP server... It will use MYSql.....

For now I created my own MYSql login/register system (Email/Age/Pass/Ban/Name). I am still working on that.

I have few more questions:
1.If I set everythig to use database, it will be overloaded? I mean that database will store wantedlevel, guns, money, skin etc.... Should I save less things?

2. If is here anyone who use System32's house system include, can you explain me how to save houses to database? I use /createhouse, I set interior, virtualword etc... but it says "The house has just been created". I reeded that I have to use /rcon gmx, but in database is nothing happening and house image dissapear..... my login system works so connection exists.....

3. Should I buy a VPS or a SA:MP dedicated host with gamepanel?