AllowAdminTeleport problem
#1

I'm trying to run Stevo's SFCNR gamemode, but everytime when i run it, it shows this

[18:27:00] AllowAdminTeleport() : function is deprecated. Please see OnPlayerClickMap()

how to fix this? the server wont run normally because of that error
Reply
#2

Show AllowAdminTeleport and OnPlayerClickMap(If you have it)
Reply
#3

Quote:
Originally Posted by [EnErGyS]KING
Посмотреть сообщение
Show AllowAdminTeleport and OnPlayerClickMap(If you have it)
well i've found only the AllowAdminTeleport, but not the OnPlayerClickMap
Reply
#4

Okay you need to create it
pawn Код:
public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ)
{
    if(IsPlayerAdmin(playerid))
    {
        SetPlayerPosFindZ(playerid, fX, fY, fZ);
    }
    return 1;
}
P.S. Delete AllowAdminTeleport
P.S.S. You can even not to add this "OnPlayerClickMap"
Reply
#5

Okay i've done that, but it shows that message anyway.
Reply
#6

Delete AllowAdminTeleport
also, you can even not to add this "OnPlayerClickMap"
Reply
#7

Quote:
Originally Posted by [EnErGyS]KING
Посмотреть сообщение
Delete AllowAdminTeleport
also, you can even not to add this "OnPlayerClickMap"
i've deleted that, but nothing changed..
Reply
#8

Did you do that?: deleted "AllowAdminTeleport(1);" and added(optional)
pawn Код:
public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ)
{
    if(IsPlayerAdmin(playerid))
    {
        SetPlayerPosFindZ(playerid, fX, fY, fZ);
    }
    return 1;
}
and compile again then start server ?
Reply
#9

It means you have to use "OnPlayerClickMap". You cannot use AllowAdminTeleport anymore, use OnPlayerClickMap instead.
Reply
#10

It's fixed guys, there some another problem which i didn't notice. Thanks for help!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)