Eve ga;: 😄
//====================================================
if(strcmp(cmd, "/stan", true) == 0) //by: Salvatore (Opsta komanda)
{
new text; new novac;
if(sscanf(params, "si",text , novac))
{
SendClientMessage(playerid, BELA, "Uputstvo: /stan info | lock | takemoney | putmoney ");
return 1;
}
if(strcmp(text,"info",true) == 0) // info o stanu
{
for(new i = 0; i < sizeof(StanInfo); i++)
{
new string;
if(IsPlayerInRangeOfPoint(playerid, 10,StanInfo, StanInfo, StanInfo) && strcmp(StanInfo, imeigraca, false ) == 0)
{
SendClientMessage(playerid, ZUTA, "|========================================|");
if(StanInfo == 1)
{
SendClientMessage(playerid, BELA, "Zakljucan: Da");
}
if(StanInfo == 0)
{
SendClientMessage(playerid, BELA, "Zakljucan: Ne");
}
format(string, sizeof(string), "Novac u sefu: %d $", StanInfo);
SendClientMessage(playerid, BELA, string);
format(string, sizeof(string), "Vrednost stana: %d $", StanInfo);
SendClientMessage(playerid, BELA, string);
SendClientMessage(playerid, ZUTA, "|========================================|");
return 1;
}
}
return 1;
}