SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 21 of 21
Search took 0.00 seconds.
Search: Posts Made By: frouzen
Forum: Scripting Help 23/11/2017, 06:35 PM
Replies: 4
Views: 349
Posted By frouzen
Re: GangZone

IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
if (x > minx && x < maxx && y > miny && y < maxy)...
Forum: Scripting Help 23/11/2017, 04:54 PM
Replies: 10
Views: 724
Posted By frouzen
Re: Fuel

CMD:tankovat(playerid,params[])
{
new string[128];
if(PlayerInfo[playerid][Admin] < 2) return SendClientMessage(playerid,-1,"{FF0000}[ADMIN] {FFFFFF}Nemas AdminLevel 2");
...
Forum: Scripting Help 04/11/2017, 03:48 PM
Replies: 6
Views: 403
Posted By frouzen
Re: SetPlayerHealth %f

Try this.
#include <a_samp>
#define FILTERSCRIPT
//help by frouzen
new isFrozen[MAX_PLAYERS];
new lastHealth[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
isFrozen[playerid] =...
Forum: Scripting Help 04/11/2017, 03:31 PM
Replies: 6
Views: 403
Posted By frouzen
Re: SetPlayerHealth %f

What line is the error at?
Forum: Scripting Help 04/11/2017, 02:20 PM
Replies: 7
Views: 332
Posted By frouzen
Re: toggleplayercontrallable and repeats

Try now.
#include <a_samp>
#define FILTERSCRIPT
#define MAX_PING 15
new isFrozen[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
isFrozen[playerid] = false;
return 1;
Forum: Scripting Help 04/11/2017, 01:56 PM
Replies: 7
Views: 332
Posted By frouzen
Re: toggleplayercontrallable and repeats

public OnPlayerUpdate(playerid) {
if(GetPlayerPing(playerid) > MAX_PING)
{
if(!isFrozen[playerid])
{
TogglePlayerControllable(playerid, 0); //true/freeze
...
Forum: Scripting Help 20/10/2017, 09:48 AM
Replies: 9
Views: 482
Posted By frouzen
Re: compound statement not closed

Which line is number 963?
Forum: Scripting Help 20/10/2017, 09:29 AM
Replies: 9
Views: 482
Posted By frouzen
Re: compound statement not closed

case 555:
{
if(response)
{
switch(listitem)
{
case 0:
{
ShowPlayerDialog(playerid, DIALOG_COMMANDS, DIALOG_STYLE_MSGBOX, "Server Commands", "/kill, /help", "Okay",...
Forum: Scripting Help 17/10/2017, 06:13 PM
Replies: 2
Views: 199
Posted By frouzen
Forum: Scripting Help 17/10/2017, 06:10 PM
Replies: 7
Views: 411
Posted By frouzen
Re: HELP

public OnPlayerSpawn(playerid)
{
TextDrawShowForAll(discord[0]);
TextDrawShowForAll(discord[1]);

SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
...
Forum: Scripting Help 06/10/2017, 01:35 PM
Replies: 14
Views: 572
Posted By frouzen
Re: some basic dialog errors

Can you post line number 707?
Forum: Scripting Help 06/10/2017, 01:27 PM
Replies: 14
Views: 572
Posted By frouzen
Re: some basic dialog errors

Line 707 should be: Admin baza\n\",

EDIT: You forgot something here.
if(listitem == 4)
{
switch(listitem)
{
"Skola\n Banka\n Auto skola\n...
Forum: Scripting Help 05/10/2017, 07:48 PM
Replies: 5
Views: 378
Posted By frouzen
Re: Help needed with Drug System

What is the purpose of declaring the variable "drugs"? Why do you want to use that? It pops up as an error because you don't assign a value to it.
Forum: Scripting Help 05/10/2017, 04:54 PM
Replies: 36
Views: 2,342
Posted By frouzen
Re: Detect player when fell at water off

I guess he can find a fix around that.
Forum: Scripting Help 05/10/2017, 04:19 PM
Replies: 36
Views: 2,342
Posted By frouzen
Re: Detect player when fell at water off

Add this near the top of you script and add every boat.
new boats[] = {
539, 446, 430
};
And change the one I gave you to this.
public OnPlayerUpdate(playerid){
new Float: PosX, Float:...
Forum: Scripting Help 05/10/2017, 03:43 PM
Replies: 1
Views: 332
Posted By frouzen
Re: Death Pickup

You mean this? http://forum.sa-mp.com/showthread.php?t=466103&highlight=Weapon+drop
Forum: Scripting Help 04/10/2017, 02:59 PM
Replies: 8
Views: 348
Posted By frouzen
Forum: Scripting Help 04/10/2017, 02:46 PM
Replies: 8
Views: 348
Posted By frouzen
Re: Regarding loops

It's because you aren't giving i a number. Try this.
for(new i=0; i < 2; i++)
Forum: Scripting Help 04/10/2017, 09:24 AM
Replies: 4
Views: 269
Posted By frouzen
Re: Help

Give it a try, if you meant playerid instead of faction in this line getFactionType(faction), then change it.
YCMD:find(playerid, params[], help) {
if(help) {
...
Forum: Scripting Help 04/10/2017, 08:57 AM
Replies: 36
Views: 2,342
Posted By frouzen
Re: Detect player when fell at water off

public OnPlayerUpdate(playerid){
new Float: PosX, Float: PosY, Float: PosZ, vehicle;
GetPlayerPos(playerid, PosX, PosY, PosZ);
vehicle = GetPlayerVehicleID(playerid);
if(PosZ <...
Forum: Scripting Help 03/10/2017, 10:18 PM
Replies: 36
Views: 2,342
Posted By frouzen
Re: Detect player when fell at water off

Can you share line number 17?
Showing results 1 to 21 of 21

 

All times are GMT. The time now is 08:14 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.