30.06.2014, 16:00
Then try to be one.
Read wiki pages, learn from other people's script.
Anyways, here is an example~
Put this on top of your script! (below includes)
So, the top of your script should look like
On GameModeInit, put your classes (GroveStreet, Ballas) with AddPlayerClass
Then, go find the callback
Modify it to
Easy, right?
Read wiki pages, learn from other people's script.
Anyways, here is an example~
Put this on top of your script! (below includes)
pawn Код:
#define TEAM_GROVE (0)
#define TEAM_BALLAS (1)
// Colors
#define COL_GREEN 0x33FF33FF
#define COL_PURPLE 0x2E8054FF
pawn Код:
#include <a_samp>
#define TEAM_GROVE (0)
#define TEAM_BALLAS (1)
// Colors
#define COL_GREEN 0x33FF33FF
#define COL_PURPLE 0x2E8054FF
Then, go find the callback
pawn Код:
public OnPlayerSpawn(playerid)
pawn Код:
public OnPlayerSpawn(playerid)
{
switch(GetPlayerSkin(playerid)) { // Get player's skin, and check it
case 105..107 : { // Grove Street OGs Skins, I don't know what you have in your script
SetPlayerTeam(playerid, TEAM_GROVE);
SetPlayerColor(playerid, COL_GREEN);
}
case 102..104 : { // Ballas Skins, I don't know what you have in your script
SetPlayerTeam(playerid, TEAM_BALLAS);
SetPlayerColor(playerid, COL_PURPLE);
}
}
return 1;
}