10.02.2017, 22:31
(
Последний раз редактировалось 1sbedx; 11.02.2017 в 00:01.
)
PHP код:
CMD:convidartodos(playerid, params[])
{
new
Float:x,
Float:y,
Float:z;
GetPlayerPos(playerid, x, y, z);
for (new i = 0; i < MAX_PLAYERS; i ++) if (!GetPVarFloat(i, "AdmX")) {
SendClientMessage(i, -1, "Um Administrador estб convidado todos do servidor para ir atй ele.");
SetPVarFloat(i, "AdmX", x);
SetPVarFloat(i, "AdmY", y);
SetPVarFloat(i, "AdmZ", z);
}
return 1;
}
CMD:aceitar(playerid, params[])
{
if (!GetPVarFloat(playerid, "AdmX"))
return 1;
SetPlayerPos(playerid, GetPVarFloat(playerid, "AdmX"), GetPVarFloat(playerid, "AdmY"), GetPVarFloat(playerid, "AdmZ"));
DeletePVar(playerid, "AdmX");
DeletePVar(playerid, "AdmY");
DeletePVar(playerid, "AdmZ");
return 1;
}
CMD:negar(playerid, params[])
{
if (!GetPVarFloat(playerid, "AdmX"))
return 1;
DeletePVar(playerid, "AdmX");
DeletePVar(playerid, "AdmY");
DeletePVar(playerid, "AdmZ");
return 1;
}
CMD:cancelarconvite(playerid, params[])
{
for (new i = 0; i < MAX_PLAYERS; i ++) if (GetPVarFloat(i, "AdmX")) {
DeletePVar(i, "AdmX");
DeletePVar(i, "AdmY");
DeletePVar(i, "AdmZ");
}
return 1;
}