OnPlayerSpawn
#3

Okay, so player spawns at DM zone after dying? And that's how you want it to work, but player doesnt get the weps? Well, just check your variable if its equal to 1 (the DM zone one) give him the guns.

Edit: I saw your reply, I'm from phone chances are this code might miss some braces or whatever.

Код:
if(PlayerJoinedDMZone[playerid] == 1)
    {
        new randomcoords = random(sizeof(DMSpawn));
        SPP(playerid, DMSpawn[randomcoords][0], DMSpawn[randomcoords][1], DMSpawn[randomcoords][2]);
GivePlayerWeapon(playerid, 26, 100);
	GivePlayerWeapon(playerid, 22, 100);
	GivePlayerWeapon(playerid, 25, 100);
	GivePlayerWeapon(playerid, 28, 500);
	GivePlayerWeapon(playerid, 30, 100);
	GivePlayerWeapon(playerid, 33, 50);
	SetPlayerArmour(playerid, 100);
	SPH(playerid, 100);
    }
    return 1;
}
Reply


Messages In This Thread
OnPlayerSpawn - by Micko123 - 28.04.2016, 19:21
Re: OnPlayerSpawn - by Micko123 - 28.04.2016, 19:23
Re: OnPlayerSpawn - by Ritzy2K - 28.04.2016, 19:24
Re: OnPlayerSpawn - by Micko123 - 28.04.2016, 19:26
Re: OnPlayerSpawn - by Ritzy2K - 28.04.2016, 19:26
Re: OnPlayerSpawn - by Micko123 - 28.04.2016, 19:31
Re: OnPlayerSpawn - by Ritzy2K - 28.04.2016, 19:33
Re: OnPlayerSpawn - by iKevin - 28.04.2016, 20:40
Re: OnPlayerSpawn - by Micko123 - 29.04.2016, 07:39
Re: OnPlayerSpawn - by iKevin - 29.04.2016, 08:09

Forum Jump:


Users browsing this thread: 1 Guest(s)