RolePlayScript -
waza75 - 23.05.2009
Hi Readers

.
I want to make a RP script of my own in the Future.. OFc with a team.
Now I want to know from you guys..
What's the best order to make an RP script??
Like what to do first and what to do next?
Thanks,
Re: RolePlayScript -
v0nz - 23.05.2009
I'd suggest using a simple and easy script such as godfather. You can also learn a lot by editing and fixing up godfather.
Re: RolePlayScript -
FreddeN - 23.05.2009
I'm making a Ligth-Roleplay, anyway... the first thing I created was a skin selection on a good point.
On my script I have different camera views but if you want to make a real RP script, it should be in only one place.
Then I started to add skins and maked teams, like this:
Код:
case 0:
{
GameTextForPlayer(playerid,"~n~~n~~n~~w~Grove Street Families",15000,3);
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,2510.8049,-1672.5457,13.4367);
SetPlayerFacingAngle(playerid,257.4974);
SetPlayerCameraPos(playerid,2515.3618,-1673.4263,13.7578);
SetPlayerCameraLookAt(playerid,2510.8049,-1672.5457,13.4367);
SetPlayerColor(playerid,0x33AA33AA);
SetPlayerTeam(playerid,1);
ApplyAnimation(playerid,"PLAYIDLES","TIME",4.1,1,1,1,1,1);
}
}
That is the skin selection and team color, also it plays a animation, oh it adds a text to that skin to in the skin selection
Then I created a /ooc script:
Код:
if(!strcmp(cmdtext, "/ooc", true, 3))
{
new str[256], pname[256];
GetPlayerName(playerid, pname, 256);
format(str, 256, "(( Ooc: %s:%s ))", pname, cmdtext[4]);
SendClientMessageToAll(0xFFFFFFAA, str);
return 1;
}
Also I maked a smaller chat radius:
Код:
LimitGlobalChatRadius(10);
And a smalled name draw distance:
Код:
SetNameTagDrawDistance(10);
And now I'm creating cars and houses to buy.
Good Luck
Re: RolePlayScript -
woot - 23.05.2009
Start off with a basic register/login script, in the best case using dcmd_, faster and easier IMO.
Then a basic adminscript, while gameplaying you'll notice which commands are missing, so just keep adding them.
You might take some functions from the Godfather, such as ProxDetector etc, for the Chatradius..
Uhwell, yeah.
Re: RolePlayScript -
waza75 - 24.05.2009
Where you put the chat radius limit code and such? Under
Thanks,
Re: RolePlayScript -
Castle - 24.05.2009
i think under OnPlayerChat
Re: RolePlayScript -
samgreen - 24.05.2009
Quote:
Originally Posted by waza75
Where you put the chat radius limit code and such? Under
Thanks,
|
I would place the initialization type methods under OnGameModeInit. Refer to other functions available here:
https://sampwiki.blast.hk/wiki/Category:Scripting_Functions