Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Mirnas_Tajic poslato Mart 12, 2011, 13:04:10 POSLE PODNE

Naslov: [pomoc] Komanda /space
Poruka od: Mirnas_Tajic poslato Mart 12, 2011, 13:04:10 POSLE PODNE
Skripta koju koristim://
Detaljan opis problema:Kako da napravim komandu  /space za pracenje igraca
Dio skripte://
Neke slike/video za lakse dobivanje pomoci(neobavezno)://
Naslov: Odg: [pomoc] Komanda /space
Poruka od: makelele poslato Mart 12, 2011, 13:06:01 POSLE PODNE
bice tebi i mod ljut ako neprocitas pravila
Naslov: Odg: [pomoc] Komanda /space
Poruka od: Mirnas_Tajic poslato Mart 12, 2011, 13:12:45 POSLE PODNE
Nekontam oces li pomoc ili ne??
Naslov: Odg: [pomoc] Komanda /space
Poruka od: MicroSD_ poslato Mart 12, 2011, 13:14:15 POSLE PODNE
probaj ovako nesto

if(strcmp(cmd, "/tv", true) == 0 || 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[playerid] > 0)
    {
    GetPlayerMoney(playerid);
        WatchingTV[playerid] = 0;
Spectate[playerid] = 253;
GameTextForPlayer(playerid, "~w~                Recon~n~~r~                Off", 5000, 6);
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
return 1;
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "   You are not watching TV !");
    return 1;
}
}
if(PlayerInfo[playerid][pAdmin] >= 2)
{
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
    if(giveplayerid != INVALID_PLAYER_ID)
    {
Spectate[playerid] = giveplayerid;
new Float:health;
GetPlayerHealth(Spectate[playerid], health);
new Float:armor;
GetPlayerArmour(Spectate[playerid], armor);
GetPlayerName(Spectate[playerid], giveplayer, sizeof(giveplayer));
new cash =  GetPlayerMoney(Spectate[playerid]);
if (PlayerInfo[playerid][pAdmin] >= 2)
{
format(string, sizeof(string), "Recon: (%d) %s $%d H:%.0f A:%.0f",Spectate[playerid],giveplayer,cash,health,armor);
}
SendClientMessage(playerid, COLOR_GREEN, string);
WatchingTV[playerid] = 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;
}

Naslov: Odg: [pomoc] Komanda /space
Poruka od: Mirnas_Tajic poslato Mart 12, 2011, 13:17:47 POSLE PODNE
Zasto mi izbaci kad ono Complite izbaci mi Pawn Compliter librry Eror imam dole send Error Report   i  don"t Send
Naslov: Odg: [pomoc] Komanda /space
Poruka od: Nikola I poslato Mart 12, 2011, 13:36:28 POSLE PODNE
To je zato sto moras da imas isti broj "{" i "}"