if(strcmp(cmdtext, \"/afk\", true) == 0)
{
new string[256];
GetPlayerPos(playerid, PosX[playerid], PosY[playerid], PosZ[playerid]);
GetPlayerFacingAngle(playerid, PosA[playerid]);
PosI[playerid] = (GetPlayerInterior(playerid));
SetPlayerInterior(playerid,3);
SetPlayerPos(playerid,198.3797,160.8905,1003.0300);
SetPlayerFacingAngle(playerid,177.0350);
SetCameraBehindPlayer(playerid);
TogglePlayerControllable(playerid,0);
new away[MAX_PLAYER_NAME];
GetPlayerName(playerid, away, MAX_PLAYER_NAME);
format(string, sizeof(string), \"%s Afk be ment!\", away);
GameTextForAll(string, 4000, 6);
return 1;
}
if(strcmp(cmdtext, \"/vissza\", true) == 0)
{
SetPlayerPos(playerid, PosX[playerid], PosY[playerid], PosZ[playerid]);
SetPlayerFacingAngle(playerid, PosA[playerid]);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, PosI[playerid]);
new string[256];
TogglePlayerControllable(playerid,1);
new back[MAX_PLAYER_NAME];
GetPlayerName(playerid, back, MAX_PLAYER_NAME);
format(string, sizeof(string), \"%s visszajott!!\", back);
GameTextForAll(string, 4000, 6);
return 1;
}
ezt a scriptett berakom és a gm azt irja hogy unknown