Killstreak prob - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Killstreak prob (
/showthread.php?tid=419992)
Killstreak prob -
Ananisiki - 03.03.2013
^^^^^^^^
Re: Killstreak prob -
L.Hudson - 03.03.2013
Is it a script that u made by yourself or another gamemode? It maybe has an anticheat which has a custom "GivePlayerMoney" callback...
Re: Killstreak prob -
Ananisiki - 03.03.2013
^^^^^^^^
Re: Killstreak prob -
L.Hudson - 03.03.2013
Try removing the GivePlayerMoney in the 3rd killsteak and tell me if it's happening again
Respuesta: Killstreak prob -
Strier - 03.03.2013
You're not formatting the client messages are you?
format(str, sizeof(str), "%s(%d) is on a killing spree of %d", pName, playerid, KillingSpree[playerid]);
sendclientmessagetoall(-1, str);
Re: Killstreak prob -
L.Hudson - 03.03.2013
Yeah it's also the formating, as Strier says you didn't format the messages
Re: Killstreak prob -
Ananisiki - 03.03.2013
^^^^^^^^
Respuesta: Killstreak prob -
Strier - 03.03.2013
pawn Код:
stock pName(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
return name;
}
Now, you can use pName(playerid) Instead making all the procedure GetPlayerName blabla in each function.
Re: Killstreak prob -
Ananisiki - 03.03.2013
^^^^^^^^
Re: Killstreak prob -
L.Hudson - 03.03.2013
do under new name[MAX_PLAYER_NAME];
pawn Код:
GetPlayerName(playerid, name, sizeof(name));