- 0
Ajutor
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
SpriTe_
Salut SA-MP, am o linie care trebuie sa o definesc, dar nici prin cap nici prin minte nu gasesc o solutie cum fac asta:
[pawn]
error 017: undefined symbol "SendLogClient"
[/pawn]
Linia:
[pawn]
else return SendLogClient( playerid );
[/pawn]
Si daca aveti nevoie va dau scriptu intreg:
[pawn]
CMD:afk( playerid, params[ ] )
{
if ( PlayerInfo[ playerid ][ LoggedIn ] == 1 )
{
if ( afktime[ playerid ] == 1 )
{
Game3TextForPlayer( playerid, "~y~You have recently been ~r~AFK, ~y~and cannot use ~r~/AFK ~y~for 2 minutes.");
}
if ( afktime[ playerid ] == 0 )
{
if ( isafk[ playerid ] == 1 )
{
Game3TextForPlayer( playerid, "~r~ERROR!: ~y~You are already in AFK mode!" );
}
if ( isafk[ playerid ] == 0 )
{
new afk[ 256 ], Float:x,Float:y,Float:z;
format( afk, sizeof( afk ), "~r~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~r~ %s ~w~ is now ~g~AFK.", PlayerName( playerid ) );
GameTextForAll( afk, 4000, 3 );
TogglePlayerControllable( playerid, 0 );
SetPlayerVirtualWorld( playerid, ( playerid + 1 ) );
isafk[ playerid ] = 1;
afktime[ playerid ] = 1;
GetPlayerPos( playerid, x, y, z );
SetPVarFloat( playerid, "X", x );
SetPVarFloat( playerid, "Y", y );
SetPVarFloat( playerid, "Z", z );
if ( Posaved[ playerid ] == 0 )
{
Posaved[ playerid ] = 1;
}
SetTimerEx( "playerafk", 1000*60*2, false, "b", playerid );
SetPlayerName( playerid, PlayerName( playerid ) );
}
}
}
else return SendLogClient( playerid ); //Aici e linia.
return 1;
}
[/pawn]
Ajutati-ma va rog, cum sa defines?
5 answers to this question
Recommended Posts