Re: [INC]EasyNames -
Byrner - 24.09.2008
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.
Re: [INC]EasyNames -
Byrner - 24.09.2008
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?
Re: [INC]EasyNames -
Byrner - 26.09.2008
Anybody?
Re: [INC]EasyNames -
mickEi[Ro] - 27.09.2008
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
Re: [INC]EasyNames -
Sandra18[NL] - 27.09.2008
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);
}
}
Re: [INC]EasyNames -
mickEi[Ro] - 28.09.2008
thx Sandra, it worked, keep it up
::ABK FTW

::
Re: [INC]EasyNames -
Byrner - 28.09.2008
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
Re: [INC]EasyNames -
Byrner - 06.10.2008
It's ok I'm a noob lol, got it
Re: [INC]EasyNames -
mickEi[Ro] - 13.10.2008
lol you dont need to do triple++ post
Re: [INC]EasyNames -
Byrner - 13.10.2008
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
Re: [INC]EasyNames -
Rozzie - 13.10.2008
nice one sandra!

I will be using this in my gm
Re: [INC]EasyNames -
HB - 14.10.2008
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
Re: [INC]EasyNames -
mascii - 25.11.2008
one of the most awesome things i have seen in scripting
well done, thanks
Re: [INC]EasyNames -
Klutty - 12.04.2009
Thanks Sandra! I will definently use this
Re: [INC]EasyNames -
Sandra18[NL] - 12.04.2009
Thanks
Re: [INC]EasyNames -
Weirdosport - 12.04.2009
Quote:
Originally Posted by =>Sandra<=
"Sandra19[NL]" will become "]NL[91ardnaS"
|
Guess again >.>