02.03.2014, 15:19
Olб gente eu tentei olhei em gm's mas nao achei tipo queria colocar ultimo login do dono no /infocasa :
PHP код:
if(strcmp(cmdtext, "/infocasa", true) == 0)
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
for(new c = 0; c < MAX_CASAS; c++)
{
format(string, sizeof(string), "/Casas/casa%d.ini", c);
if(dini_Exists(string))
{
if(IsPlayerInRangeOfPoint(playerid, 8.0, dini_Float(string, "PosX"), dini_Float(string, "PosY"), dini_Float(string, "PosZ")))
{
format(STRX, sizeof(STRX), "~~~~~~~~~~~~~~~ Casa Nъmero: %d ~~~~~~~~~~~~~~~", c);
SendClientMessage(playerid, 0x836FFFAA, STRX);
format(STRX, sizeof(STRX), "* Dono: %s", dini_Get(string, "Dono"));
SendClientMessage(playerid, 0xFFFFFFAA, STRX);
format(STRX, sizeof(STRX), "* Valor: R$%d", dini_Int(string,"Preco"));
SendClientMessage(playerid, 0xFFFFFFAA, STRX);
format(STRX, sizeof(STRX), "* Interior da casa: %d", dini_Int(string,"Int"));
SendClientMessage(playerid, 0xFFFFFFAA, STRX);
format(STRX, sizeof(STRX), "* Ultimo Login do Dono: %d", dini_Int(string,"NГO sei oque coloca aqui =/"));
SendClientMessage(playerid, 0xFFFFFFAA, STRX);
format(STRX, sizeof(STRX), "~~~~~~~~~~~~~~~ Casa Nъmero: %d ~~~~~~~~~~~~~~~", c);
SendClientMessage(playerid, 0x836FFFAA, STRX);
}
else
{
SendClientMessage(playerid, Vermelho, "[INFO] Vocк nгo estб em uma casa.");
}
}
}
return 1;
}