SA-MP Forums Archive
Text on the comand - 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 on the comand (/showthread.php?tid=103076)



Text on the comand - monster010 - 18.10.2009

How can I make this command a text, eg "You have a passport?

Код:
  if(!strcmp(cmdtext, "/vamasf", true))
  {
    if(PlayerInfo[playerid][pPassport] == 1)
    if(PlayerToPoint(2.0,playerid,-993.4935,-1006.3951,94.1104))
    {
	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;
}



Re: How I cand Do? - monster010 - 19.10.2009

Nobody Know's?


Re: Text on the comand - [ATC]eRaZoR - 19.10.2009

Код:
 if(!strcmp(cmdtext, "/vamasf", true))
  {
    if(PlayerInfo[playerid][pPassport] == 1)
if(PlayerInfo[playerid][pPasswort] == 0) return SendClientMessage(playerid, COLOR_RED, "You have a password?");
    if(PlayerToPoint(2.0,playerid,-993.4935,-1006.3951,94.1104))
    {
	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;
}



Re: Text on the comand - monster010 - 20.10.2009

Tanks a lot