14.09.2011, 15:22
here:
for example:
pawn Код:
public OnGameModeInIt()
{
// Case 0
AddPlayerClass(skin, Float:x, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);
// Case 1
AddPlayerClass(skin, Float:x, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);
// Case 2
AddPlayerClass(skin, Float:x, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);
}
public OnPlayerRequestClass(playerid,classid)
{
if(classid == 0) {
GameTextForPlayer(playerid,"This Is Skin Number 1",3000,5);
else if(classid == 1) {
GameTextForPlayer(playerid,"This Is Skin Number 2",3000,5);
else if(classid == 2) {
GameTextForPlayer(playerid,"This Is Skin Number 3",3000,5);
}
}
}
return 1;
}
pawn Код:
public OnGameModeInIt()
{
AddPlayerClass(104,1979.1917,-1222.0964,25.1824,97.3597,0,0,0,0,0,0);
AddPlayerClass(107,2508.5671,-1673.6665,13.3793,86.2585,0,0,0,0,0,0);
}
public OnPlayerRequestClass(playerid,classid)
{
if(classid == 0) {
GameTextForPlayer(playerid,"This Is Ballas skin",3000,5);
else if(classid == 1) {
GameTextForPlayer(playerid,"this is Grove skin",3000,5);
}
}
return 1;
}
