Blocking skins
#9

Код:
public OnPlayerSpawn(playerid)
{
	if(FirstTime[playerid] == 0)
	{
	    GivePlayerCash(playerid, 5000);
	    SendClientMessage(playerid, COLOR_LIME, "The Server give you $5000 for playing in the server!");
	    FirstTime[playerid] = 1;
	}
	if(Player[playerid][Spawn] == 1)
	{
		SetPlayerPos(playerid,Player[playerid][SpawnX],Player[playerid][SpawnY],Player[playerid][SpawnZ]);
		SetPlayerInterior(playerid,Player[playerid][SpawnInt]);
		SetPlayerVirtualWorld(playerid,Player[playerid][SpawnVW]);
	}

	if(pInfo[playerid][Spawn] == 0)
    {
		SetPlayerPos(playerid, RandomSpawns[Random][X], RandomSpawns[Random][Y], RandomSpawns[Random][Z]);
		SetPlayerFacingAngle(playerid, RandomSpawns[Random][Angle]);
		format(strg, sizeof(strg), "%s", RandomSpawns[Random][Message]);
	}
	else if(pInfo[playerid][Spawn] == 1)
	{
	    SetPlayerPos(playerid, 391.2109,2539.9592,16.5427);
	    SetPlayerFacingAngle(playerid, 142.9048);
	}
	else if(pInfo[playerid][Spawn] == 2)
	{
	    SetPlayerPos(playerid, 1838.6377,-2404.4272,13.5547);
	    SetPlayerFacingAngle(playerid, 1.3001);
	}
	else if(pInfo[playerid][Spawn] == 3)
	{
	    SetPlayerPos(playerid, -2314.1245,-1693.3069,482.5130);
	    SetPlayerFacingAngle(playerid, 355.9733);
	}
	else if(pInfo[playerid][Spawn] == 4)
	{
	    SetPlayerPos(playerid, -2621.7107,1413.2504,7.0938);
	    SetPlayerFacingAngle(playerid, 152.4966);
	}
    God[playerid][0] = 0;
	SetPlayerArmour(playerid, 100.0);
    SendClientMessage(playerid, COLOR_GREEN, "");
    SetPlayerHealth(playerid,100);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    GivePlayerWeapon(playerid, 5, 1);
    GivePlayerWeapon(playerid, 24, 999);
    GivePlayerWeapon(playerid, 32, 999);
    GivePlayerWeapon(playerid, 31, 999);
    GivePlayerWeapon(playerid, 26, 999);
	PlayerPlaySound(playerid, 1186, -2615.8809,-294.8363,22.6588);
	return 1;
}
Reply


Messages In This Thread
Blocking skins - by Xdrime - 24.05.2016, 15:52
Re: Blocking skins - by GTLS - 24.05.2016, 15:57
Re: Blocking skins - by Dayrion - 24.05.2016, 16:15
Re: Blocking skins - by Stinged - 24.05.2016, 16:55
Re: Blocking skins - by Xdrime - 24.05.2016, 17:53
Re: Blocking skins - by Sew_Sumi - 24.05.2016, 17:59
Re: Blocking skins - by Dayrion - 24.05.2016, 18:04
Re: Blocking skins - by Stinged - 24.05.2016, 18:08
Re: Blocking skins - by Xdrime - 24.05.2016, 18:09
Re: Blocking skins - by Xdrime - 24.05.2016, 18:13

Forum Jump:


Users browsing this thread: 2 Guest(s)