Text to appear
#1

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
Reply
#2

what for text you want that appears?
Reply
#3

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
Reply
#4

Tanks a lot
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)