20.08.2018, 10:14
/tele
/last
Reference: https://sampwiki.blast.hk/wiki/GetPVarType
pawn Код:
SetPVarInt(playerid, "RandomLocation", randomloc);
pawn Код:
if (GetPVarType(playerid, "RandomLocation")) // PVar has been set
{
new string[80];
format(string, sizeof(string), "Last teleport was to: %s", g_LocationData[GetPVarInt(playerid, "RandomLocation")][e_LocName]);
SendClientMessage(playerid, -1, string);
}
// else SendClientMessage(playerid, -1, "You did not teleport anywhere.);