14.04.2011, 17:03
(
Последний раз редактировалось Cameltoe; 07.07.2011 в 11:50.
)
Setting up your gamemode
- Okay, i'm sick and tired off all those "where to put", "where i i insert this" Replys when i try to help people out, I will later on in this tuturial show some of the replys.
Some of you are alot experienced then others.
Haterz Gtfo, if you don't find this useful go troll some elsewhere.
First of all, My own Cutsomized "New.pwn"
Код:
/* *///================= [ Includes ] ===========================================// //================= [ Defines ] ==============================================// //================= [ Forwards ] =============================================// //================= [ Enums ] ================================================// //================= [ Symbols ] ==============================================// //================= [ Callbakcs ] ============================================// //================= [ Functions ] ============================================// //================= [ Stocks ] ===============================================// //================= [ Commands] ==============================================//
This is the first part, this is were i put the credits & includes.
pawn Код:
/*
Some Fucking Good GM BY MASTASCRTPAHH1337z00r
v.0.0.0.0.0.0.0.1 rc 1
*///================= [ Includes ] ===========================================//
// This is were i put my includes, pretty obvious.
#include <a_samp>
pawn Код:
//================= [ Defines ] ==============================================//
#define MAX_NOOBS (MAX_PLAYERS)
#define MAX_NOOB_CAKES 10 // How many cakes noobs can have.
pawn Код:
//================= [ Forwards ] =============================================//
forward GivePlayerNoobCake(playerid);
pawn Код:
//================= [ Enums ] ================================================//
enum NoobInfo
{
NoobCakes,
}
pawn Код:
//================= [ Symbols ] ==============================================//
new NoobInfo[MAX_NOOBS][NoobInfo];
pawn Код:
//================= [ Callbakcs ] ============================================//
public OnPlayerConnect(playerid)
{
return GivePlayerNoobCake(playerid);
}
pawn Код:
//================= [ Functions ] ============================================//
public GivePlayerNoobCake(playerid)
{
NoobInfo[playerid][NoobCakes]++;
}
pawn Код:
//================= [ Stocks ] ===============================================//
stock GetPlayerNoobCakes(playerid)
{
return NoobInfo[playerid][NoobCakes];
}
pawn Код:
//================= [ Commands] ==============================================//
command(givecake, playerid, params[])
{
return GivePlayerNoobCake(playerid);
}
Hall of fame