Having a huge problem with my server and i need quick help..
#1

Ok, so i'm going to try to explain this as good as i can..

I am scripting my own sa-mp roleplay script for my server.. and for some reason when i see another player, they don't move and it says that they are AFK.. (I have tried skyping with my friends, and they have said that they are mooving but they are AFK it says.. I have also watched my friends screen so i know they don't try to trick me..)
I am using the Hoster "Volt-Host", and i asked if they could check if there was any DDOS attack, but there wasn't..
I don't think it is something with the script(i am not 100% sure) since i have been scripting for two months now and i feel like i've kind of "got into it".. if anyone have any idea of what is going on.. please help.. (i will give u +REP if you halp me..)
Reply
#2

OnPlayerUpdate callback should return 1, otherwise this.
Reply
#3

Thank you so much :'D

like this?? :P
Код:
public OnPlayerUpdate(playerid)
{
	if(PlayerInfo[playerid][pSC] == 1)
	{
     	new message[256];
	    new pName[250];
		GetPlayerName(playerid, pName, sizeof(pName));
	    format(message, sizeof(message), "%s was cought by a SpeedCam going over 90kmp/h!", pName);
		SendClientMessage(playerid, 0xBA0095FF, message);
		PlayerInfo[playerid][pSC] = 0;
	}
	if(PlayerInfo[playerid][pCatch] == 1)
	{
    	new speed_string[300];
    	SendClientMessage(playerid,COLOR_RED, " ");
    	format(speed_string,300,"You drove at %d kmp/h, The Palomino Creek Police Department has been warned.",final_speed_int[playerid], final_speed_int[playerid]*2);
    	SendClientMessage(playerid,COLOR_RED, speed_string);
    	PlayerInfo[playerid][pCatch] = 0;
	}
	if(Boost[playerid] == 1)
	{
	    new vehicleid = GetPlayerVehicleID(playerid);
    	RepairVehicle(vehicleid);
	}
	return 1;
}
Reply
#4

how can you rep when you have -rep, and less than ~30 posts?

and yes that
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)