I need to script something
#1

I need to script something like /licenses (id)
but it will be /dlicense (id)
/dlicense means driving license

I need it like this:
format(string, sizeof(string), "CarLicenses/%s.ini", pname);


it will look in sciptfiles/carlicenses if that player is having carlicense

it will show, not passed if there wont be name of player
or it will show PASSED if there will be name of player

Please make this script for me
Reply
#2

Somenone please?
Reply
#3

Script request thread
Reply
#4

I cant find there, what i asked
Reply
#5

Quote:
Originally Posted by spaty2
Посмотреть сообщение
I cant find there, what i asked
He's telling you to post there....
Reply
#6

that thred is closed ... please guys, make this script for me. I tried to make this script, but i dont know how ..
Reply
#7

Quote:
Originally Posted by spaty2
Посмотреть сообщение
that thred is closed ... please guys, make this script for me. I tried to make this script, but i dont know how ..
I don't think everyone is gonna create a script for you. Just because you don't know how.
Reply
#8

Quote:
Originally Posted by spaty2
Посмотреть сообщение
I need to script something like /licenses (id)
but it will be /dlicense (id)
/dlicense means driving license

I need it like this:
format(string, sizeof(string), "CarLicenses/%s.ini", pname);


it will look in sciptfiles/carlicenses if that player is having carlicense

it will show, not passed if there wont be name of player
or it will show PASSED if there will be name of player

Please make this script for me
Reading back at this, you can even do it as an even simpler method. If your using enums to store your variables, simply add CarLicenses and set a value. Therefore checking whether the value is 1, you have a license.
Reply
#9

You can't write it? I dont know how to make this still of script, i asking for that, because i dunno how to do this things please write it for me, if it is easy, how you say
Reply
#10

pawn Код:
enum pInfo
{
    pCarLic
}
new PlayerInfo[MAX_PLAYERS][pInfo];
pawn Код:
CMD:license(playerid, params[])
{
    if(PlayerInfo[playerid][pCarLic] == 1)
    {
        SendClientMessage(playerid, COLOR_WHITE, "You have your license!");
    }
    else
    {
        SendClientMessage(playerid, COLOR_WHITE, "Unfortunately, you don't have your license!");
    }
    return 1;
}
Still, you don't need to add a variable in an enum, you can simply create one. But this is still a more affective method as you can store more than 1 variables in an enum.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)