[Include] [INC]EasyNames
#21

One more thing,sorry I know I'm a noob.
How would I get the players name?
Like so I could use it in a message.
Reply
#22

Ok,here is the problem.

When it is suppose to be saying the player name it gives a random number,here is the needed code:

Код:
for(new i=0;i<MAX_PLAYERS;i++)
	{
	if(PlayerNameIs(i, CarNameOwner[vehicleID]))
	{
	new Owner[24];
   GetPlayerName(i,Owner, 25);
	SendClientMessage(playerid,COLOR_YELLOW,"This vehicle has been purchased from AutoBahn. You are not the owner");
	format(string, sizeof(string), "This vehicle is registered to %s(%d)",Owner,i);
    SendClientMessage(playerid, COLOR_YELLOW, string);
Any ideas?
Reply
#23

Anybody?
Reply
#24

o hai sandra, 1) don't leave samp, ur FS/INC's are to good and 2) I could need some help.. and I`m not that good scripter , here's what: I've got 1 case:

case 18:

{

GameTextForPlayer(playerid, "~w~bla bla", 500, 3);
SetPlayerPos(playerid,bla bla);
SetPlayerFacingAngle(playerid, 0.0);
SetPlayerCameraPos(playerid,bla bla;
SetPlayerCameraLookAt(playerid,bla bla);
SetPlayerInterior(playerid,0);
ApplyAnimation(playerid,"GHANDS","gsign5",4.0,0,0, 0,0,0);
TextDrawShowForPlayer(playerid,etc);
TextDrawHideForPlayer(playerid,etc);

so, idk how to make the char reserver, if u aint got PlayerNameContains or PlayerNameStartsWith(playerid, "[ABK]"); server kicks u.. that's what I wanna make

Thx for the possible help
Reply
#25

You mean something like this:

Код:
case 18:
{
  if(PlayerNameStartsWith(playerid, "[ABK]"))
  {
    GameTextForPlayer(playerid, "~w~bla bla", 500, 3);
	SetPlayerPos(playerid,bla bla);
	SetPlayerFacingAngle(playerid, 0.0);
	SetPlayerCameraPos(playerid,bla bla;
	SetPlayerCameraLookAt(playerid,bla bla);
	SetPlayerInterior(playerid,0);
	ApplyAnimation(playerid,"GHANDS","gsign5",4.0,0,0,0,0,0);
	TextDrawShowForPlayer(playerid,etc);
	TextDrawHideForPlayer(playerid,etc);
  }
  else
  {
    SendClientMessage(playerid, 0xFF0000AA, "Only [ABK]members are allowed to use this...");
    Kick(playerid);
  }
}
Reply
#26

thx Sandra, it worked, keep it up

::ABK FTW ::
Reply
#27

Quote:
Originally Posted by =>Sandra<=
You mean something like this:

Код:
case 18:
{
  if(PlayerNameStartsWith(playerid, "[ABK]"))
  {
   GameTextForPlayer(playerid, "~w~bla bla", 500, 3);
	SetPlayerPos(playerid,bla bla);
	SetPlayerFacingAngle(playerid, 0.0);
	SetPlayerCameraPos(playerid,bla bla;
	SetPlayerCameraLookAt(playerid,bla bla);
	SetPlayerInterior(playerid,0);
	ApplyAnimation(playerid,"GHANDS","gsign5",4.0,0,0,0,0,0);
	TextDrawShowForPlayer(playerid,etc);
	TextDrawHideForPlayer(playerid,etc);
  }
  else
  {
    SendClientMessage(playerid, 0xFF0000AA, "Only [ABK]members are allowed to use this...");
    Kick(playerid);
  }
}
Byrner has been ignored
If you don't know how to do it thats no prob but please tell me so I am not checking this all the time lol.
I have tried a few things and they didnt work
Reply
#28

It's ok I'm a noob lol, got it
Reply
#29

lol you dont need to do triple++ post
Reply
#30

Quote:
Originally Posted by [ABK
iker ]
lol you dont need to do triple++ post
Well, I was ignored the first time so I taught I would *bump*.
Then I got it myself so I didn't want anyone wasting time on it
You can ask why didn't I edit, someone could of seen my post before and without re-reading replying
Reply
#31

nice one sandra!
I will be using this in my gm
Reply
#32

Fucking nice function man, thats what i needed. Ur the best. Damn if this script was for sale it would have been worth 50 dollars if ur not so good at scripting :P
Reply
#33

one of the most awesome things i have seen in scripting

well done, thanks
Reply
#34

Thanks Sandra! I will definently use this
Reply
#35

Thanks
Reply
#36

Quote:
Originally Posted by =>Sandra<=
"Sandra19[NL]" will become "]NL[91ardnaS"
Guess again >.>
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)