Detaljan opis problema: Stavio sam komandu /recon(/specplayer) i sve ljepo radi ubacio sam i GametextForPlayer za healt, armor, cash.. I sve to super radi, ali kada idem /recon off vrati me na spawn..Ja bih htio da me vrati na lokaciju gdje sam poceo /reconat..
Dio skripte:
if(strcmp(cmd, "/recon", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /recon [playerid/PartOfName]" );
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /recon off (prekid recona)" );
return 1;
}
if(strcmp("off", tmp, true, strlen(tmp)) == 0)
{
if(WatchingTV > 0)
{
GetPlayerMoney(playerid);
WatchingTV = 0;
Spectate = 253;
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You are not watching TV !");
return 1;
}
}
if(PlayerInfo >= 1)
{
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
Spectate = giveplayerid;
new Float:health;
GetPlayerHealth(Spectate, health);
new Float:armor;
GetPlayerArmour(Spectate, armor);
GetPlayerName(Spectate, giveplayer, sizeof(giveplayer));
new cash = GetPlayerMoney(Spectate);
if (PlayerInfo >= 1)
{
format(string, sizeof(string), "Recon: (%d) %s $%d H:%.0f A:%.0f",Spectate,giveplayer,cash,health,armor);
}
SendClientMessage(playerid, COLOR_GREEN, string);
WatchingTV = 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREEN, " Target is not available.");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command!");
return 1;
}
}
return 1;
}I jos jedno pitanje: Dali se kako moze money and weapon drop FS preradit da ne dropa gun ili pare igracima ako nisu lvl3?
