i recently started new gm and things started happening like no it was everything on but bum
Код:
public OnPlayerSpawn(playerid)
switch(GetPlayerSkin(playerid))
{
case 92: {SetPVarInt(playerid,"Terrorist",1);SetPlayerTeam(playerid, 1); Terrorists=Terrorists+1; SetPlayerColor(playerid,RED);}
case 115: {SetPVarInt(playerid,"Counter_Terrorist",1);SetPlayerTeam(playerid, 2); Counter_Terrorists=Counter_Terrorists+1; SetPlayerColor(playerid,BLUE);}
}
/* for(new i=0; i<GetMaxPlayers(); i++)
{
SetPlayerMarkerForPlayer(playerid, i, 0x0000FF00);
if(GetPVarInt(playerid,"Terrotist")==1)
{
SetPlayerMarkerForPlayer(playerid, i, RED);
}
}
for(new i=0; i<GetMaxPlayers(); i++)
{
SetPlayerMarkerForPlayer(playerid, i, 0x0000FF00);
if(GetPVarInt(playerid,"Terrotist")==1)
{
SetPlayerMarkerForPlayer(playerid, i, BLUE);
}
}*/
TogglePlayerControllable(playerid,1); //161 line
GivePlayerMoney(playerid,800); //162 line
return 1; //163 line
}