SA-MP Forums Archive
help some things i am looking for - 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)
+--- Thread: help some things i am looking for (/showthread.php?tid=322533)



help some things i am looking for - Ilya0101 - 02.03.2012

Hi guys i am making my script for fun and i wanted to know some stuff,
How do i script that the chat will be around you and not global?
how to make text in selection screen so like i want write what skin it is?
how do i create somthing that will save the money and skin every time someone logs in and also when he die he wont lose the money?
Thanks,
I will Rep.


Re: help some things i am looking for - Mike_Peterson - 02.03.2012

Ilya, to make it very short.

Local chat? OnGameModeInit & LimitGlobalChatRadius(20.0); (change the 20.0 to whatever you like)
Selection screen? OnPlayerRequestClass & GameTextForPlayer
Logout saving? OnPlayerDisconnect & a file processor, like dini, y_ini, djson,file(default), etc.
This ain't the best ways to do it, but they're fast ways to do it.


Re: help some things i am looking for - Ilya0101 - 02.03.2012

The first one i understood,But anybody else can explain me the secound one,with the selection screen text for each skin,Please thanks.


Re: help some things i am looking for - Walsh - 02.03.2012

Quote:
Originally Posted by Ilya0101
Посмотреть сообщение
The first one i understood,But anybody else can explain me the secound one,with the selection screen text for each skin,Please thanks.
By selection screen do you mean class selection? Or a dialog message box where you input the skin id you want?


Re: help some things i am looking for - ricardo178 - 03.03.2012

You should visit wiki.sa-mp.com to learn a bit more about these basic things. Learn the pawn basics first, so we can talk you in scripting language, and it wont be chinese to you. I can tell you to create a dialog for the register, one for the login, and use some system like dini for the save.. Define the variables in enum and all that, but if you don't know what enum, and variable means, you wont understand it.


Re: help some things i am looking for - Ilya0101 - 03.03.2012

Quote:
Originally Posted by ricardo178
Посмотреть сообщение
You should visit wiki.sa-mp.com to learn a bit more about these basic things. Learn the pawn basics first, so we can talk you in scripting language, and it wont be chinese to you. I can tell you to create a dialog for the register, one for the login, and use some system like dini for the save.. Define the variables in enum and all that, but if you don't know what enum, and variable means, you wont understand it.
I guess your right


Re: help some things i am looking for - Ilya0101 - 03.03.2012

Quote:
Originally Posted by Walsh
Посмотреть сообщение
By selection screen do you mean class selection? Or a dialog message box where you input the skin id you want?
class selections ya how do i put to each skin you can select a text above it