SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Romānă/Romanian

 
 
Thread Tools Display Modes
Old 08/04/2014, 06:34 PM   #1
BoSs_S
Huge Clucker
 
BoSs_S's Avatar
 
Join Date: Mar 2011
Posts: 484
Reputation: 5
Default Problema "/tduty"

Buna seara am si eu o problema cu comanda "/tduty" pentru Remorcari Auto.De ceva timp cand membrii factiunii Remorcari Auto dau /tduty sunt la datorie si daca dau,iar le scrie ca sunt iar la datorie inloc sa spuna ca nu mai este la datorie..

pawn Code:
if(strcmp(cmd, "/tduty", true) == 0)
{
new str[128];
if(PlayerInfo[playerid][pMembru] == 17 || PlayerInfo[playerid][pLider] == 17)
{
if(PlayerToPoint(5.0, playerid, 913.3785,-1235.0999,17.2109))
          {
if(tccind[playerid] == 0)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
OnDuty[playerid] = 1;
format(str,sizeof(str), "{00BFFF}<T.C.C>{FF0000}%s,{00BFFF}Id:{FF0000}%d,{00BFFF}este la datorie > /callservice", sendername,playerid);
ABroadCast(COLOR_YELLOW,str,1);
GivePlayerWeapon(playerid, 42, 99999);
GivePlayerWeapon(playerid, 46, 99999);
GivePlayerWeapon(playerid, 24, 300);
SetPlayerSkin(playerid, 50);
SetPlayerColor(playerid,0x00CC99FF);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
}
else
{
GetPlayerName(playerid, sendername, sizeof(sendername));
OnDuty[playerid] = 0;
format(str,sizeof(str), "{00BFFF}<T.C.C>{FF0000}%s,{00BFFF}Id:{FF0000}%d,{00BFFF}numai este la datorie", sendername,playerid);
ABroadCast(COLOR_2RED,str,1);
ResetPlayerWeapons(giveplayerid);
SetPlayerSkin(playerid, 48);
SetPlayerHealth(playerid, 100);
SetPlayerColor(playerid,0xFFFFFFFF);
SetPlayerArmour(playerid, 0);
}
}
else
{
SendClientMessage(playerid, COLOR_2RED,"{009966}Nu Esti In Vestiar Pentru {FF0000}/tduty!");
return 1;
  }
}
else
{
SendClientMessage(playerid, COLOR_2RED, "Nu Esti Membru {009966}Remorcari Auto");
return 1;
  }
return 1;
}
__________________
[IMG]
BoSs_S is offline  
Old 09/04/2014, 06:07 PM   #2
BoSs_S
Huge Clucker
 
BoSs_S's Avatar
 
Join Date: Mar 2011
Posts: 484
Reputation: 5
Default Re: Problema "/tduty"

Up? va rog frumos..
__________________
[IMG]
BoSs_S is offline  
Old 10/04/2014, 11:34 AM   #3
[Ro]DuReX
Huge Clucker
 
Join Date: Aug 2012
Posts: 283
Reputation: 11
Default Re: Problema "/tduty"

Vezi daca merge:
pawn Code:
if(strcmp(cmd, "/tduty", true) == 0)
{
    new str[128];
    if(PlayerInfo[playerid][pMembru] == 17 || PlayerInfo[playerid][pLider] == 17)
    {
        if(PlayerToPoint(5.0, playerid, 913.3785,-1235.0999,17.2109))
        {
            if(tccind[playerid] == 0)
            {
                GetPlayerName(playerid, sendername, sizeof(sendername));
                OnDuty[playerid] = 1;
                tccind[playerid] = 1; // Ai uitat asta.
                format(str,sizeof(str), "{00BFFF}<T.C.C>{FF0000}%s,{00BFFF}Id:{FF0000}%d,{00BFFF}este la datorie > /callservice", sendername,playerid);
                ABroadCast(COLOR_YELLOW,str,1);
                GivePlayerWeapon(playerid, 42, 99999);
                GivePlayerWeapon(playerid, 46, 99999);
                GivePlayerWeapon(playerid, 24, 300);
                SetPlayerSkin(playerid, 50);
                SetPlayerColor(playerid,0x00CC99FF);
                SetPlayerHealth(playerid, 100);
                SetPlayerArmour(playerid, 100);
            }
            else
            {
                GetPlayerName(playerid, sendername, sizeof(sendername));
                OnDuty[playerid] = 0;
                tccind[playerid] = 0; // Si asta ai uitat-o.
                format(str,sizeof(str), "{00BFFF}<T.C.C>{FF0000}%s,{00BFFF}Id:{FF0000}%d,{00BFFF}numai este la datorie", sendername,playerid);
                ABroadCast(COLOR_2RED,str,1);
                ResetPlayerWeapons(giveplayerid);
                SetPlayerSkin(playerid, 48);
                SetPlayerHealth(playerid, 100);
                SetPlayerColor(playerid,0xFFFFFFFF);
                SetPlayerArmour(playerid, 0);
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_2RED,"{009966}Nu Esti In Vestiar Pentru {FF0000}/tduty!");
            return 1;
        }
    }
    else
    {
        SendClientMessage(playerid, COLOR_2RED, "Nu Esti Membru {009966}Remorcari Auto");
        return 1;
    }
    return 1;
}
[Ro]DuReX is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
error: undefine symbol "j" and expected token ";" but found "]" JEkvall95 Scripting Help 9 27/07/2013 10:09 AM
5 Dialog errors - Input line too long, undefined symbol "t","is" and "only" Deal-or-die Scripting Help 6 01/05/2012 12:08 PM
Admin script requires "ReturnUser", "strtok" and "IsNumeric" Rubennnnn Help Archive 1 02/12/2009 06:08 PM
"Bots", "AI", "NPCs"... Computer-controlled pedestrians and traffic! ssflsnoob General 2 23/11/2008 06:06 PM


All times are GMT. The time now is 02:57 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.