27.07.2009, 11:12
I have been doing little experiment with SetPlayerTeam function. when I enter interior 4, it should set me in team 189, but insted it sets me in team 255. same happens when I leave interior 4. please help
Код:
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) { if(newinteriorid == 4) { new str[64]; SetPlayerTeam(playerid, 189); format(str, sizeof(str), "Current team: %i", GetPlayerTeam(playerid)); SendClientMessage(playerid,WHITE,str); return 1; } if(newinteriorid == 0) { new str[64]; SetPlayerTeam(playerid, playerid); format(str, sizeof(str), "Current team: %i", GetPlayerTeam(playerid)); SendClientMessage(playerid,WHITE,str); return 1; } return ; }