19.07.2015, 09:33
Hello!
Can you send us more code of OnPlayerConnect. Maybe the "file"?
Well, this is a better construction to set the teamid:
- Mencent
Can you send us more code of OnPlayerConnect. Maybe the "file"?
Well, this is a better construction to set the teamid:
PHP код:
stock SetPlayergTeam(playerid,teamid)
{
switch(teamid)
{
case 1:gTeam[playerid] = CIVILIAN;
case 2:gTeam[playerid] = POLICE;
case 3:gTeam[playerid] = PSD;
case 4:gTeam[playerid] = MECHANIC;
case 5:gTeam[playerid] = DOCK;
case 6:gTeam[playerid] = HITMAN;
case 7:gTeam[playerid] = MEDIC;
case 8:gTeam[playerid] = PILOT;
case 9:gTeam[playerid] = PILOT;
case 10:gTeam[playerid] = FIRE;
}
return gTeam[playerid];
}