Why my Checkpoint wont work?
#1

hi users,

Im trying to script a little but im not lucky xD

can someone help me with this

Code:
if(IsPlayerConnectedEx(GetPlayerID(text)))
			        {
						new location[MAX_ZONE_NAME];
						GetPlayer2DZone(playerid, location, MAX_ZONE_NAME);
			            format(string, sizeof(string), "911: %s has reported %s for %s (tracked from %s)", GetName(playerid), GetPlayerID(text), Player[playerid][ActiveCrimeReport], location);
						for(new i = 0; i < MAX_PLAYERS; i++)
						{
							if(IsPlayerConnectedEx(i))
						   	{
						   		if(Groups[Player[i][Group]][CommandTypes] == 1 && Player[i][CopDuty] == 1)
						   		{
						   		    SendClientMessage(i, RED, string);
						   		}
							}
						}
i want if the Police or FMD get this call they get a checkpoint on there map where the crime or accident is.
can someone help me with this?
Reply
#2

I don't see none SetPlayerCheckpoint there.

pawn Code:
if(IsPlayerConnectedEx(GetPlayerID(text)))
{
    new location[MAX_ZONE_NAME], pos[3];
    GetPlayer2DZone(playerid, location, MAX_ZONE_NAME);
    GetPlayerPos(playerid, pos[0], pos[1], pos[1]);
    format(string, sizeof(string), "911: %s has reported %s for %s (tracked from %s)", GetName(playerid), GetPlayerID(text), Player[playerid][ActiveCrimeReport], location);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnectedEx(i))
        {
            if(Groups[Player[i][Group]][CommandTypes] == 1 && Player[i][CopDuty] == 1)
            {
                SendClientMessage(i, RED, string);
                SetPlayerCheckpoint(i, pos[0], pos[1], pos[2], 5.0);
            }
        }
    }
Reply
#3

it gives 4 errors at my pawno
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)