[FilterScript] Deathsystem [zcmd][sscanf]
#1

Deathsystem v1.0
I'm new to scripting with pawno and to scripting in general, therefore I wanted to make something simple but really nice for a roleplay script.

This script pretty much freezes the player before he dies and places him in a death animation, to make the character respawn you will have to use the command /acceptdeath and a 60 second timer. once the 60 seconds have passed you will spawn at the all saints hospital. If you found any bugs please send them at me so I can fix them. Also, if another player is logged in as an rcon admin, it will be able to use /revive to revive the player again.

Commands

/suicide
/acceptdeath
/revive
Pictures






Download
Download
Pastebin
Credits
Zeex - zcmd https://sampforum.blast.hk/showthread.php?tid=91354
******- sscanf https://sampforum.blast.hk/showthread.php?tid=570927
Reply
#2

Hi, following things:

- It's called PAWN and not PAWNO.
- sscanf has been created by ******
- why do you print 2 times that your FS has been loaded?
- Don't use capital letters in the Float part where you're getting the players position (X,Y,Z) use x,y,z.

Other than that, good work
Reply
#3

Quote:
Originally Posted by JustMe.77
Посмотреть сообщение
- It's called PAWN and not PAWNO.
The program are pawno, but languag are pawn.

Quote:
Originally Posted by JustMe.77
Посмотреть сообщение
- Don't use capital letters in the Float part where you're getting the players position (X,Y,Z) use x,y,z.
Do you know what the fucking you're talking about?
Reply
#4

Quote:
Originally Posted by Meller
Посмотреть сообщение
The program are pawno, but languag are pawn.


Do you know what the fucking you're talking about?
He was obviously referring to pawn. Pawno is just a text editor.

is^ is^

All of JustMe.77's points are invalid, except 1 and 2.

Good job, simple yet has a use.
Reply
#5

Quote:
Originally Posted by JustMe.77
Посмотреть сообщение
Hi, following things:
- Don't use capital letters in the Float part where you're getting the players position (X,Y,Z) use x,y,z.
I've never seen bullshit like this before in my life.. It's the same thing if it's capital X, Y, Z or x, y, z. He will get the same positions with big capital and small capital letters, that does not matter.
Reply
#6

Quote:
Originally Posted by JustMe.77
Посмотреть сообщение
Hi, following things:

- It's called PAWN and not PAWNO.
- sscanf has been created by ******
- why do you print 2 times that your FS has been loaded?
- Don't use capital letters in the Float part where you're getting the players position (X,Y,Z) use x,y,z.

Other than that, good work
What's the problem using capital letters?!
Reply
#7

Quote:
Originally Posted by Deadpoop
Посмотреть сообщение
What's the problem using capital letters?!
Nothing..

PHP код:
new Float:XFloat:YFloat:Z;
GetPlayerPos(playeridXYZ); 
Is the same as

PHP код:
new Float:xFloat:yFloat:z;
GetPlayerPos(playeridxy z); 
Reply
#8

It's more formal to use lowercase letters for single character variables, just as it is formal to use lowercase letters at the begging of any variable name.

There are a few formal naming conventions in programming that can definitely benefit you if you want a career in programming. Variable name cases are definitely one of them.


https://en.m.wikipedia.org/wiki/Coding_conventions
Reply
#9

Quote:
Originally Posted by JustMe.77
Посмотреть сообщение
Hi, following things:

- It's called PAWN and not PAWNO.
- sscanf has been created by ******
- why do you print 2 times that your FS has been loaded?
- Don't use capital letters in the Float part where you're getting the players position (X,Y,Z) use x,y,z.

Other than that, good work
Lol dude its called pawno check it in the folder.
Reply
#10

Awesome work , Keep on .
Also guys this is a filterscript not a place for fighting .
Reply


Forum Jump:


Users browsing this thread: