Posts: 36
Threads: 5
Joined: Jan 2012
Reputation:
0
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.
Posts: 844
Threads: 32
Joined: Apr 2009
Reputation:
0
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.
Posts: 36
Threads: 5
Joined: Jan 2012
Reputation:
0
The first one i understood,But anybody else can explain me the secound one,with the selection screen text for each skin,Please thanks.
Posts: 1,599
Threads: 164
Joined: Dec 2010
Reputation:
0
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.