19.07.2009, 11:09
If you open pawno, and press the new button, you'll be presented with a page full of callbacks.
For the time being, you won't need most of these, so delete the stuff there and paste this for the time being:
When loaded, this gamemode will give the name in the server window that you specify, and allow you to spawn as CJ at the casino place up the escalators in LV.
To add vehicles, you need to load debugger, either from ingame or via the RCON window.
This gives you access to the /v command, and several other useful commands.
By typing "/v sand" you spawn a sandking.
To save a player position of vehicle position, type /save. To access these co-ordinates exit SA-MP and look in your GTA folder. The file "savedpositions.txt" should contain the co-ordinates.
For the time being, you won't need most of these, so delete the stuff there and paste this for the time being:
pawn Код:
#include <a_samp>
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
public OnGameModeInit()
{
SetGameModeText("Your Name Here");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;
}
To add vehicles, you need to load debugger, either from ingame or via the RCON window.
This gives you access to the /v command, and several other useful commands.
By typing "/v sand" you spawn a sandking.
To save a player position of vehicle position, type /save. To access these co-ordinates exit SA-MP and look in your GTA folder. The file "savedpositions.txt" should contain the co-ordinates.