SA-MP Forums Archive
Text to appear - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Text to appear (/showthread.php?tid=107857)



Text to appear - ()ZzY - 11.11.2009

How I make on this command a text?
Код:
//=====================[ Vama1 ]====================================================================================
if(!strcmp(cmdtext, "/vamasf", true))
{
  if(PlayerInfo[playerid][pPassport] == 1)
  {
    if(PlayerInfo[playerid][pPassport] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu ai pasaport , du-te la primarie si iati");
    {
      if(PlayerToPoint(2.0,playerid,-991.1277,-1009.0092,94.3856))
      {
     	 SetObjectRot(vama1,2.5783, 21.4859, 225.8595);
       SetTimer("GateClose", 5000, 0);
     	 SendClientMessage(playerid, COLOR_LIGHTRED, "Welcome to San Fierro");
       GivePlayerMoney(playerid,-50);
      }
    }
  }
  return 1;
}
I tried to do, but nothing


THANKS


Re: Text to appear - caribe88 - 11.11.2009

what for text you want that appears?


Re: Text to appear - dirkblok - 11.11.2009

Quote:
Originally Posted by ()ZzY
How I make on this command a text?


I tried to do, but nothing


THANKS
Try this :
pawn Код:
//=====================[ Vama1 ]====================================================================================
if(!strcmp(cmdtext, "/vamasf", true))
{
    if(PlayerInfo[playerid][pPassport] == 1)
    {
    if(PlayerToPoint(2.0,playerid,-991.1277,-1009.0092,94.3856))
      {
         SetObjectRot(vama1,2.5783, 21.4859, 225.8595);
       SetTimer("GateClose", 5000, 0);
         SendClientMessage(playerid, COLOR_LIGHTRED, "Welcome to San Fierro");
       GivePlayerMoney(playerid,-50);
      }

    }
    else
    {
        SendClientMessage(playerid, COLOR_LIGHTRED, "Nu ai pasaport , du-te la primarie si iati");
    }
 
  return 1;
}
You with your script you look if PlayerInfo[playerid][pPassport] == 1
if that's true, you check if PlayerInfo[playerid][pPassport] == 0, what automaticly is no, so the tekst won't appear and the object won't move, try my code


Re: Text to appear - ()ZzY - 11.11.2009

Tanks a lot


Re: Text to appear - dirkblok - 12.11.2009

Quote:
Originally Posted by ()ZzY
Tanks a lot
no problem at all