more guns at start ? -
dennis-jippi - 01.02.2009
hi,
can we get more guns in the begin ??
its crash if i do more ??
: warning 202: number of arguments does not match definition
or i need add something to other place in script ?
Re: more guns at start ? -
Nimphious - 01.02.2009
@ onplayerspawn
pawn Код:
GivePlayerWeapon(playerid, gunid, ammo);
GivePlayerWeapon(playerid, gunid, ammo);
GivePlayerWeapon(playerid, gunid, ammo);
GivePlayerWeapon(playerid, gunid, ammo);
And so on.
Re: more guns at start ? -
dennis-jippi - 01.02.2009
Quote:
Originally Posted by (FF)TeddyBear
@ onplayerspawn
pawn Код:
GivePlayerWeapon(playerid, gunid, ammo); GivePlayerWeapon(playerid, gunid, ammo); GivePlayerWeapon(playerid, gunid, ammo); GivePlayerWeapon(playerid, gunid, ammo);
And so on.
|
u can do it too on only 1 char or something ?
Re: more guns at start ? -
Nimphious - 01.02.2009
No, everytime a player spawns it will give them a weapon, (meaning all players that spawn)
Re: more guns at start ? -
StrickenKid - 01.02.2009
for that would you put the gun id or gun model id ?
Re: more guns at start ? -
Lewwy - 01.02.2009
https://sampwiki.blast.hk/wiki/Weapons
And it's the gun ID you need to put.
Re: more guns at start ? -
Nimphious - 01.02.2009
pawn Код:
GivePlayerWeapon(playerid, 26, 500);
^^ That there will give a player a sawnoff with 500 ammo.
Re: more guns at start ? -
dennis-jippi - 01.02.2009
Quote:
Originally Posted by (FF)TeddyBear
No, everytime a player spawns it will give them a weapon, (meaning all players that spawn)
|
and where i need to put that i cant get it lolz ?
i got it think i :P and add player classes with gangs ?
Re: more guns at start ? -
dennis-jippi - 01.02.2009
and i got this problem Lol ?
C:\Documents and Settings\DENNIS\Bureaublad\gta server\gamemodes\TW2.pwn(821) : error 001: expected token: ";", but found "else"
C:\Documents and Settings\DENNIS\Bureaublad\gta server\gamemodes\TW2.pwn(821) : warning 217: loose indentation
C:\Documents and Settings\DENNIS\Bureaublad\gta server\gamemodes\TW2.pwn(821) : error 029: invalid expression, assumed zero
C:\Documents and Settings\DENNIS\Bureaublad\gta server\gamemodes\TW2.pwn(821) : warning 215: expression has no effect
C:\Documents and Settings\DENNIS\Bureaublad\gta server\gamemodes\TW2.pwn(821) : error 001: expected token: ";", but found "if"
C:\Documents and Settings\DENNIS\Bureaublad\gta server\gamemodes\TW2.pwn(821) : fatal error 107: too many error messages on one line
i got but i dont know how to add ?
if(gTeam[playerid] == TEAM_GROVE) { SetPlayerColor(playerid,COLOR_GREEN); SetPlayerInterior(playerid,3); }
else if(gTeam[playerid] == TEAM_BALLAS) SetPlayerColor(playerid,COLOR_PURPLE);
else if(gTeam[playerid] == TEAM_AZTEC) SetPlayerColor(playerid,COLOR_LIGHTBLUE);
else if(gTeam[playerid] == TEAM_NANG) SetPlayerColor(playerid,COLOR_DARKRED);
else if(gTeam[playerid] == TEAM_VAGOS) SetPlayerColor(playerid,COLOR_YELLOW);
else if(gTeam[playerid] == TEAM_COPS) SetPlayerColor(playerid,COLOR_BLUE);
else if(gTeam[playerid] == TEAM_MAFIA) SetPlayerColor(playerid,COLOR_BLACK);
else if(gTeam[playerid] == TEAM_BIKER) SetPlayerColor(playerid,COLOR_ORANGE);
else if(gTeam[playerid] == TEAM_TRIAD) SetPlayerColor(playerid,COLOR_WHITE);
else if(gTeam[playerid] == TEAM_ADMIN) { SetPlayerColor(playerid,COLOR_GOLD); GivePlayerWeapon(playerid,34,200); GivePlayerWeapon(playerid,16,50); }
else if(gTeam[playerid] == TEAM_ARMY) { SetPlayerColor(playerid,COLOR_DARKBROWN); SetPlayerFacingAngle(playerid,90); GivePlayerWeapon(playerid,16,7); }
else if(gTeam[playerid] == TEAM_LOWRIDER) SetPlayerColor(playerid,red);
else if(gTeam[playerid] == TEAM_SKATER) SetPlayerColor(playerid,Skater_grey);
else if(gTeam[playerid] == TEAM_UNDERTAKER) SetPlayerColor(playerid,COLOR_PINK);
else if(gTeam[playerid] == TEAM_WORKER) SetPlayerColor(playerid,Worker_green);
return 1;
}
how can i then add i got errors if i do that or something ?
Re: more guns at start ? -
AlExAlExAlEx - 01.02.2009
ask in GF thread.
Re: more guns at start ? -
Nimphious - 02.02.2009
Quote:
Originally Posted by AlExAlExAlEx
ask in GF thread.
|
This is not related to the gf, lol @ u.
Re: more guns at start ? -
AlExAlExAlEx - 02.02.2009
Quote:
Originally Posted by (FF)TeddyBear
Quote:
Originally Posted by AlExAlExAlEx
ask in GF thread.
|
This is not related to the gf, lol @ u.
|
my bad