How to add Mappings to SAMP
#1

Hey there guys!

Could someone help me with a few things? If so, thank you so much!
I've just become a mapper on a server but I'm no really sure how to put the mappings into the game! I got Pawno and he has sent me the gamemode. But I don't know what to write before posting the ObjectCodes (I'm using Map Construction). So if anyone could tell me what I should download (if that's needed) and what "commands" to write in the pawno and so on would be reeeeeally nice! Please help a brother out! ;P (I got the a_mysql aswell)
Reply
#2

Copy your codes and go to OnGameModeInit()
Follow the steps
pawn Код:
public OnGameModeInit()
{
    // Objects codes
    return 1;
}
Don't use these lines if it's a filterscript if it is a filterscript
then go to
pawn Код:
public OnFilterScriptInit()
and put the codes same as OnGamemodeInit.
Reply
#3

Well; for starters if you plan on making a large map; or having a large server, in general you should(in some situations need) have something like the streamer plug-in.

You can add mappings under OnFilterScriptInit, or OnGameModeInit if it's part of a gamemode script. For example,
pawn Код:
public OnFilterScriptInit()
{
     CreateObject(...)
     return 1;
}
See,
https://sampwiki.blast.hk/wiki/CreateObject
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)