SA-MP Forums Archive
zGaming Problem - 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: zGaming Problem (/showthread.php?tid=393259)



zGaming Problem - Ketchup_ - 17.11.2012

After going out and taking these articles. Waiting for your help.




Re: zGaming Problem - Plovix - 17.11.2012

Check your script again(especially OnPlayerSpawn callback)...


Re: zGaming Problem - ProdrifterX - 17.11.2012

Ketchup.. do you got zGaming scriptfiles? i mean houses, biz, mapicons.. etc?


Re: zGaming Problem - Ketchup_ - 18.11.2012

Код:
public OnPlayerSpawn(playerid)
{
	// Anti F4 Bug - Logging/Registering
	if(!PlayerInfo[playerid][pLoggedIn] && !IsPlayerNPC(playerid))
	{
		if(IsPlayerNPC(playerid)) return 1;
		SetPlayerPos(playerid, 1975.203002, 3779.311523, -50.243506);
		SetPlayerCameraPos(playerid, 1975.203002, 3779.311523, 100.243506);
		SetPlayerCameraLookAt(playerid, 1975.203002, 3779.311523, -0.243506);
	    SetSpawnInfo( playerid, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
	    new file[64];
		format(file, sizeof(file), "users/%s.ini", RPNU(playerid));
	    // Player isn't banned
	    if(dini_Int(file, "AdminAccount") == 1)
		{
		    format(file, sizeof(file), "users/%s.ini",RPNU(playerid));
		    SetPlayerName(playerid, dini_Get(file, "OldName"));
		    format(file, sizeof(file), "users/%s.ini", RPNU(playerid));
		    ShowDialog(playerid, 2);
		}
		if(!dini_Exists(file))
		{
		    ShowDialog(playerid, 1);
		    return 1;
		}
		else
		{
			ShowDialog(playerid, 2);
		}
		return 1;
	}
	// Actual Spawning
    ResetPlayerWeapons(playerid);
	if(IsPlayerNPC(playerid)) //Checks if the player that just spawned is an NPC.
	{
	  new npcname[MAX_PLAYER_NAME];
	  GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC's name.
	  if(!strcmp(npcname, "BusDriver", true)) //Checking if the NPC's name is BusDriver
	  {
	    PutPlayerInVehicle(playerid, NPCBus, 0); //Putting the NPC into the vehicle we created for it.
	    return 1;
	  }
	  return 1;
	}
    if(PlayerInfo[playerid][pLoggedIn] && PlayerInfo[playerid][pSpawn])
    {
        FalseBan[playerid] = 0;
        SetTimerEx("FalseBanFix", 6000, false, "i", playerid);
    	SpawnChar(playerid);
    }
	return 1;
}
Public mentioned above. Another issue is available in all scriptfiles folder.




Re: zGaming Problem - Smxe - 18.11.2012

Okay, What your doing is making a new account and manually editing the Admin rank. This is why its derpy.
Try this -
( Forgot how to quote )
Admin Account [PW: 123]
Web - ZIP - RAR

I know this because its happend to me. Just use that stuff and place that in your users. - Log in as " Kevin_Hawk " type the password " 123 " - Then do /setpass [name] [newpass]
Have fun lad! If it dosent work tell me.


Re: zGaming Problem - Ketchup_ - 18.11.2012

Thanks Smxe!