19.03.2017, 21:16
So hi
I tried a lot of tricks to fix it bad nothing helped with flood message.
I use this "sendClassMessage(playerid);" onplayerspawn so this message everytime you spawn start flood or dublicated. So this function look like this.
So it send you class name, bat it look like this if you login
You have spawned as a Policeman, use /class to change this
You have spawned as a Civilian, use /class to change this
So idk how it get two class names. It should send just one. Jump in water is not allowed in my script so if i jump i set him back to spawn and select him to enemy team so it look like this
So if play jump in water he get spam about 5 message or more, with example looks like this
You have spawned as a Policeman, use /class to change this
You have spawned as a Policeman, use /class to change this
You have spawned as a Policeman, use /class to change this
You have spawned as a Policeman, use /class to change this
You have spawned as a Policeman, use /class to change this
P.S i tried put checking teams bat same shit.
I tried a lot of tricks to fix it bad nothing helped with flood message.
I use this "sendClassMessage(playerid);" onplayerspawn so this message everytime you spawn start flood or dublicated. So this function look like this.
Код:
stock sendClassMessage(playerid) { new string[128]; format(string,sizeof(string),""COL_YELLOW">> You have spawned as a %s, use /class to change this",GetClassName(playerid)); SendClientMessage(playerid,-1,string); return 1; }
You have spawned as a Policeman, use /class to change this
You have spawned as a Civilian, use /class to change this
So idk how it get two class names. It should send just one. Jump in water is not allowed in my script so if i jump i set him back to spawn and select him to enemy team so it look like this
Код:
public OnPlayerUpdate(playerid) { new Float:hp; GetPlayerHealth(playerid,hp); if(hp <= 1.0) return SetPlayerHealth(playerid,-1.0); if(Map[AllowWater] == 0) { if(IsPlayerInWater(playerid)) { UpdateKST(); pInfo[playerid][mostkills] = 0; pInfo[playerid][Killstreak] = 0; EnemyTeamSetup(playerid); SpawnPlayer(playerid); CurePlayer(playerid); } } return 1; }
You have spawned as a Policeman, use /class to change this
You have spawned as a Policeman, use /class to change this
You have spawned as a Policeman, use /class to change this
You have spawned as a Policeman, use /class to change this
You have spawned as a Policeman, use /class to change this
P.S i tried put checking teams bat same shit.