dcmd_gotoh(playerid,params[]) { #pragma unused params if(PlayerInfo[playerid][Jailed] == 1) return SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment!"); new str1[256],pname[24],str[256]; GetPlayerName(playerid, pname, sizeof(pname)); format(str1, sizeof(str1), "Houses/Users/%s", udb_encode(pname)); if (dini_Exists(str1)) { if(dini_Int(str1,"Houseid")!=-255) { TeleTimer[playerid] = SetTimerEx("ttimer", 1000, true, "i",playerid); tseconds[playerid] = 6; format(tstring,45,"You Must wait %d seconds before teleporting", tseconds[playerid]-1); if(PlayerInfo[playerid][Level] == 0) SendClientMessage(playerid,COLOR_LIGHTBLUE, tstring); vCount[playerid] = 1; Tx[playerid] = dini_Float(str1,"SpawnX"); Ty[playerid] = dini_Float(str1,"SpawnY"); Tz[playerid] = dini_Float(str1,"SpawnZ"); Ti[playerid] = strval(str); format(telestring,43,"bienvenido a casa!"); } } else return SendClientMessage(playerid, c_r, "Usted no es dueсo de una casa!"); return 1; } |
dcmd_gotoh(playerid,params[])
{
#pragma unused params
if(PlayerInfo[playerid][Jailed] == 1) return SendClientMessage(playerid,COLOR_BRIGHTRED,"You cannot escape your punishment!");
new str1[256],pname[24],str[256];
GetPlayerName(playerid, pname, sizeof(pname));
format(str1, sizeof(str1), "Houses/Users/%s", udb_encode(pname));
if (dini_Exists(str1))
{
if(dini_Int(str1,"Houseid")!=-255)
{
TeleTimer[playerid] = SetTimerEx("ttimer", 1000, true, "i",playerid);
tseconds[playerid] = 6;
format(tstring,45,"You Must wait %d seconds before teleporting", tseconds[playerid]-1);
if(PlayerInfo[playerid][Level] == 0) SendClientMessage(playerid,COLOR_LIGHTBLUE, tstring);
vCount[playerid] = 1;
Tx[playerid] = dini_Float(str1,"SpawnX");
Ty[playerid] = dini_Float(str1,"SpawnY");
Tz[playerid] = dini_Float(str1,"SpawnZ");
Ti[playerid] = strval(str);
format(telestring,43,"bienvenido a casa!");
}
else return SendClientMessage(playerid, c_r, "Esa casa no existe.");
}
else return SendClientMessage(playerid, c_r, "No eres dueсo de esa casa.");
}