Search Results
there are two usefull functions SetPlayerName GetPlayerName here is a demo: Код: new name[1000], new_name[1020]; GetPlayerName(playerid, name, 1000); format(new_name, sizeof(1020), "[Player]%s"...
112
Speed by definition is distance/time. Somwhow you need to calculate time as well. You do that with timers. one of the link shows how you do that. Probably i didnt understood what you watned
109
https://sampwiki.blast.hk/wiki/DisableInteriorEnterExits
69
try to ****** that. It's easier for you and for us. And when/if you start working as programmer you will have to learn to search things like this. It's a common question and somebody already asked it,...
109
I would do it like this (you have a lot of it done): Add one player variable called QuizPassed and put 0 as it's initial value. (0 didn't take the quiz, 1 filled the quiz, 2 passed the quiz) On player...
88
It's hard to understand with what you want halp with. You said it doesn't work. Okay, what does not work - I mean, what happens and what you wanted to happen would be helpful. I can see, you store e...
88
Quote: Originally Posted by Sc0pion So when you send a message in samp, it is sent like "Username(id): Your message". Can I just change it to "Username (Id: id): Your message"? Is that pos...
78
add "return 1;" at the end. With return 1 you say program function is executed correctly.
57
https://sampforum.blast.hk/showthread.php?tid=353305
143
As Suicidal Banana said (comit suicide already xD), the RestartMessage will be called while there is 23:00 on clock. When we add seconds it will call it few times on 23:00:00, few times 23:00:01, etc....
119
Quote: Originally Posted by Terrorizt I'd rather use this one: Код: if(...) { // ... } It depends on the condition inside of the if. If condition is simple yea, if condition is...
114
there are multiple sulutions: first Код: if( !(PlayerInfo[i][pExp] < expamount)) { //... } second Код: if(PlayerInfo[i][pExp] >= expamount) { //... }
114
Quote: Originally Posted by Yashas To read a file with N keys, you will have to do (N(N+1)/2) string comparisons.Not just that, it then has to separate out the key value from the cache whi...
533
Quote: Originally Posted by Cheesus This is were i was looking for Glad to be of help. If you need anything else, let me know
138
Quote: Originally Posted by Cheesus but how do i check in what area the player is.. Yea, you can try what person above said, but I don't know where you want to spawn person? at hospital...
138
You should save coordinates, virtual world and interior in OnPlayerDeath() callback https://sampwiki.blast.hk/wiki/OnPlayerDeath you can get info using: GetPlayerPos, GetPlayerInterior, GetPlayerVirt...
138
instead of line : Код: //line 10 format(string, sizeof(string), "(({00FF00}%s: {FFFFFF}%s ))", GetPlayerNameEx(playerid), params); put this: Код: if (player is admin) // check comment1 bellow...
138
You can. Connect 5 NPCs. They will take first 5 IDs. Afterwards, you will have to find a way how you can disconnect them just right before admins connect. I can't find solution to the last thing, mayb...
175
Try to repair the script. I would start with OnPlayerDeath callback
109
Put CProgess[playerid] = 0; when player joins race.
84