SA-MP Forums Archive
Server Scripting Help Needed!! PLEASE HELP! - 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: Server Scripting Help Needed!! PLEASE HELP! (/showthread.php?tid=87546)



Server Scripting Help Needed!! PLEASE HELP! - wilcock33 - 20.07.2009

Ok hello, there are a couple of things i need help with

1: setting random spawn locations (V.URGENT)
2: setting a color to a certain player(for example, evertime i logged in, my name would appeal blue in the <---- tab box
---->
3: making messages appear in the chat box every so often like this

Connected to the fun zone!
NAME01:hello
Name02:hey
SERVER TIPS: remember to join our forum www.(withheld).com <--------- like that!

PLEASE HELP!!!!

thanks guys


Re: Server Scripting Help Needed!! PLEASE HELP! - Geekzor - 20.07.2009

1. Go to your own ''Server'' Location and open a gamemode Lvdm ---> and check for random spawns , this is where i learn to make random spawns

2. u mean Teams ?, if u mean teams check samp wiki


Re: Server Scripting Help Needed!! PLEASE HELP! - wilcock33 - 20.07.2009

no not teams induvidual players

and im a scripting virgin, so i dont know how to add the player spawns to my GM


Re: Server Scripting Help Needed!! PLEASE HELP! - Pawno_Master - 20.07.2009

1. Look at lvdm.pwn it is anywhere in your gamemode folder

2.public OnPlayerConnect(blabla)
{
SetPlayerColor(playerid,0x3A47DEFF);
return 1;
}

3.public onplayerconnect(blaba)
{
SendClientMessage(playerid,YOUR_COLOR,"Connected to the fun zone");
return 1;
}


and for the random messages look at this link


https://sampwiki.blast.hk/wiki/Random_Messages

good luck with it


Re: Server Scripting Help Needed!! PLEASE HELP! - Geekzor - 20.07.2009

Quote:
Originally Posted by wilcock33
Ok hello, there are a couple of things i need help with

1: setting random spawn locations (V.URGENT)
2: setting a color to a certain player(for example, evertime i logged in, my name would appeal blue in the <---- tab box
---->
3: making messages appear in the chat box every so often like this

Connected to the fun zone!
NAME01:hello
Name02:hey
SERVER TIPS: remember to join our forum www.(withheld).com <--------- like that!

PLEASE HELP!!!!

thanks guys
FOR COLORS:

soo add on callback: public OnPlayerConnect(playerid)

SetPlayerColor(playerid,0x0000BBAA); // this is color blue

or i am not sure if u can but i think you can do this :d

on callback: public OnPlayerSpawn(playerid)

SetPlayerColor(playerid,0x0000BBAA); // this is color blue

so it should look like this

Код:
public OnPlayerConnect(playerid)
{
	SetPlayerColor(playerid,0x0000BBAA);
	return 1;
}
or

Код:
public OnPlayerSpawn(playerid)
{
    SetPlayerColor(playerid,0x0000BBAA);
	return 1;
}
so this mean when you connect your color will be blue + when you spawn your color still will be blue ... thats all

EDIT: For ''Random Messages'' check link that ekeleke post ... https://sampwiki.blast.hk/wiki/Random_Messages


i hope i helped


Re: Server Scripting Help Needed!! PLEASE HELP! - Pawno_Master - 20.07.2009

ehh

if you connect and your blue

you stay blue if you dont have any other setplayercolor

but you can use it on onplayerspawn aswell

goodluck with it