CreateDynamicCP
#1

Hi Everyone? I have a problem here!!! Guyz I need to Fix this shit problem but How?

I typed in public OnGameModeInit() This Codes

Code:
    Checkpoint[0] = CreateDynamicCP(1332.2339,1254.7034,10.8203, 3, -1, -1, -1, 100);
    Checkpoint[1] = CreateDynamicCP(283.1432,2054.5105,17.6406, 3, -1, -1, -1, 100);
    Checkpoint[2] = CreateDynamicCP(2297.7004,2473.8352,3.2734, 3, -1, -1, -1, 100);
    Checkpoint[3] = CreateDynamicCP(1746.8922,2066.1594,10.8203, 3, -1, -1, -1, 100);
And Here..

Code:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
    if(checkpointid == Checkpoint[0])
    if(GetPlayerSkin(playerid) != 285) return SendClientMessage(playerid, -1, "{FF0000}Sorry This Place only For SWAT, you are not SWAT");
    {
    GivePlayerWeapon(playerid, 24, 65);
	GivePlayerWeapon(playerid, 26, 150);
	GivePlayerWeapon(playerid, 31, 150);
	GivePlayerWeapon(playerid, 34, 50);
	SetPlayerArmour(playerid, 100);
	SetPlayerHealth(playerid, 100);
	SendClientMessage(playerid, -1, "{FF0000}You have been Refill Come Back After you Dead");
    GameTextForPlayer(playerid, "You have been Refiled!!", 4000, 5); //It will show this if a player steps in the checkpoint
    }
	if(checkpointid == Checkpoint[1])
	if(GetPlayerSkin(playerid) != 287) return SendClientMessage(playerid, -1, "{FF0000}Sorry This Place Only For Army, you are not army");
	{
	GivePlayerWeapon(playerid, 27, 65);
	GivePlayerWeapon(playerid, 30, 100);
	GivePlayerWeapon(playerid, 24, 65);
	GivePlayerWeapon(playerid, 16, 3);
	GivePlayerWeapon(playerid, 29, 250);
	SetPlayerArmour(playerid, 75.00);
	GameTextForPlayer(playerid, "~g~Refild", 4000, 5);
	SendClientMessage(playerid, -1, "{FF0000}You have been Refiled Come Back After you Dead");
	}
	if(checkpointid == Checkpoint[2])
	if(GetPlayerSkin(playerid) != 280) return SendClientMessage(playerid, -1, "{FF0000}Sorry This Place only for Police Offier, You are not Police");
	{
	GivePlayerWeapon(playerid, 24, 37);
	GivePlayerWeapon(playerid, 33, 30);
	GivePlayerWeapon(playerid, 29, 150);
	GivePlayerWeapon(playerid, 30, 35);
	}
	if(checkpointid == Checkpoint[3])
	if(GetPlayerSkin(playerid) == 277) return SendClientMessage(playerid, -1, "{FF0000}Sorry This Refill only for Firefighter, You are not FireMan");
	{
	GivePlayerWeapon(playerid, 42, 99999);
	SendClientMessage(playerid, -1, "{FF0000}You have been Refiled, Come Back After you Dead");
	GameTextForPlayer(playerid, "~g~Refiled", 4000, 5);
	}
}
So my Problem now is : Its worked but If I joined a Firefighter i'll got Refill others I mean I make for SWAT Weapons and for army Weapons When I joined firefighter i'll got a SWAT + Army Weapons How to fix this?
Reply
#2

Why didn't you just continue on this topic? (http://forum.sa-mp.com/showpost.php?...05&postcount=1)

It's because you're letting the checkpoints run through each other.
Reply
#3

Quote:
Originally Posted by ISmokezU
View Post
Why didn't you just continue on this topic? (http://forum.sa-mp.com/showpost.php?...05&postcount=1)

It's because you're letting the checkpoints run through each other.
Actually you are just guessing here, it could also be code from a public script that both of em are trying to edit
I just don't want to believe anyones niveau is so low that he replies to his own threads
Reply
#4

Quote:
Originally Posted by [Bios]Marcel
View Post
Actually you are just guessing here, it could also be code from a public script that both of em are trying to edit
I just don't want to believe anyones niveau is so low that he replies to his own threads
Let's play lawyers.

Via PM.
Reply
#5

Quote:
Originally Posted by ISmokezU
View Post
Let's play lawyers.

Via PM.
Fixed!!! :O
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)