SA-MP Forums Archive
help me Please :) - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help me Please :) (/showthread.php?tid=252448)



help me Please :) - SwatOwner - 01.05.2011

Hello all Scripters !!


Can you help Me with making Factions.... ?



I want To make


[G4E]=Green Colour ...Spawn at Groove Street
Army = Dark Blue ..Spawn at Army hq...
LSPD = Blue...Spawn at LSPD hq
FBi = Purple...Spawn At FBI hq..


please I tried It ..But failed

I will appreciate You if You Complete It

And Also Tell Me how To Make Trucker Job


Re: help me Please :) - Vero - 01.05.2011

https://sampforum.blast.hk/showthread.php?tid=187229


Re: help me Please :) - Tommy_Mandaz - 01.05.2011

Okay well to make factions, you should make a couple then use the setplayerteam, https://sampwiki.blast.hk/wiki/SetPlayerTeam, The colors would have to be with setplayercolor, https://sampwiki.blast.hk/wiki/SetPlayerColor, As for the trucker job you would probably have to create the vehicles and then once the player enters the truck a checkpoint would be created... So on. Good luck, also a good tip is to look over some other gamemodes and see if you can learn from what is already made.


Re: help me Please :) - SwatOwner - 01.05.2011

I know..

But i want different...

And FOr that making team i tried had 2 warn..

Can you make for me and Pm me ..plz


AW: help me Please :) - [DR]Reaper[GEARS] - 01.05.2011

Quote:

public OnPlayerRequestClass(playerid, classid)
{
gClass[playerid] = classid;
switch(gClass[playerid])
{
case 0:
{
GameTextForPlayer(playerid, "~b~ ~n~ ~n~ ~n~ Green", 10000, 3);
}
case 1:
{
GameTextForPlayer(playerid, "~g~ ~n~ ~n~ ~n~ blue", 10000, 3);
}
case 2:
{
GameTextForPlayer(playerid, "~y~ ~n~ ~n~ ~n~ red", 10000, 3);
}
}
return 1;
}

public OnPlayerSpawn(playerid)

{
switch(gClass[playerid])
{
case 0:
{
here the things of green team SetPlayerPos GivePlayerWeapon etc
}
case 1:
{
here the things of blue team
}
case 2:{
here the things of the last team
}
}
return 1;
}

I hope it will help you : D


Re: help me Please :) - SwatOwner - 02.05.2011

Hey ya

Thanks for help