Wtf ? What's wrong ? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Wtf ? What's wrong ? (
/showthread.php?tid=244554)
Wtf ? What's wrong ? -
GunFight - 27.03.2011
Код:
if(strcmp(cmdtext, "/equip", true) == 0)
{
if(gTeam[playerid] == 13)
{
if(IsPlayerInRangeOfPoint(playerid,5.0, 2559.9490,-1295.0225,1060.9844))
{
new iCount = GetTickCount();
if((iCount - iLastHealed[playerid]) > 180000)
{
GivePlayerWeapon(playerid, 24, 50); // deagle
GivePlayerWeapon(playerid, 31, 500); // m4
GivePlayerWeapon(playerid, 28, 500); // uzi
GivePlayerWeapon(playerid, 8, 1); // katana
GivePlayerWeapon(playerid, 25, 50); // shotgun
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
iLastHealed[playerid] = iCount;
GameTextForPlayer(playerid,"~r~texz!", 5000, 1);
}
else return SendClientMessage(playerid, COLOR_RED, ".... 3mins!");
}
else
{
SendClientMessage(playerid, COLOR_GREY," You are not.... }
}
else
{
SendClientMessage(playerid, COLOR_RED,"* You arent in this gang!");
}
return 1;
}
This command works if i open a server from my pc... but if i upload it to my host (kingj) it dont works it always says that i must wait 3mins... " ... 3mins "
Re: Wtf ? What's wrong ? -
GunFight - 27.03.2011
No ideas ? It works on my home server.. but if i upload the gamemode to my host it dont works
Re: Wtf ? What's wrong ? -
mprofitt - 27.03.2011
I bet you are missing a plugin, ehh?
Re: Wtf ? What's wrong ? -
GunFight - 27.03.2011
no on both servers i dont use any plugins and no filterscripts
Re: Wtf ? What's wrong ? -
Stigg - 27.03.2011
Try under onplayerconnect:
pawn Код:
iLastHealed[playerid] = 0;
See if that helps.
Re: Wtf ? What's wrong ? -
Jimbo01 - 27.03.2011
don't helps
Re: Wtf ? What's wrong ? -
GunFight - 27.03.2011
ye dont help's