SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 72
Search took 0.00 seconds.
Search: Posts Made By: kaiks
Forum: Scripting Help 10/08/2012, 02:24 PM
Replies: 5
Views: 687
Posted By kaiks
Re: Problem with my /o Command

Add this to your stocks:
stock GetPlayersName(playerid)
{
new playersName[MAX_PLAYER_NAME];
GetPlayerName(playerid, playersName, MAX_PLAYER_NAME);
for(new i = 0; i <...
Forum: Scripting Help 08/08/2012, 03:39 PM
Replies: 1
Views: 465
Posted By kaiks
Re: Spawn in hospital problem

Really need help, i'm stuck with my work for this
Forum: Scripting Help 08/08/2012, 12:54 PM
Replies: 8
Views: 1,175
Posted By kaiks
Re: stats

This:

CMD:stats(playerid,params[])
{
new kills = pInfo[playerid][Kills], deaths = pInfo[playerid][Deaths], alevel = pInfo[playerid][Adminlevel], vlevel = pInfo[playerid][VIPlevel], score =...
Forum: Scripting Help 08/08/2012, 12:51 PM
Replies: 5
Views: 866
Posted By kaiks
Re: Megaphone Help

CMD:m(playerid, text[]) return cmd_megaphone(playerid, text);
CMD:megaphone(playerid, text[])
{
if(PlayerMuteInfo[playerid][AllMuted]) return SendClientMessage(playerid, TEAM_CYAN_COLOR, " ...
Forum: Scripting Help 08/08/2012, 12:46 PM
Replies: 8
Views: 1,175
Posted By kaiks
Re: stats

You've switched cash and score, maybe this was the problem,
try this


CMD:stats(playerid,params[])
{
new kills = pInfo[playerid][Kills], deaths = pInfo[playerid][Deaths], alevel =...
Forum: Scripting Help 08/08/2012, 12:41 PM
Replies: 5
Views: 866
Posted By kaiks
Re: Megaphone Help

I don't really know what you're doing but try this:


CMD:m(playerid, text[]) return cmd_megaphone(playerid, text);
CMD:megaphone(playerid, text[])
{
if(PlayerMuteInfo[playerid][AllMuted])...
Forum: Scripting Help 08/08/2012, 12:34 PM
Replies: 5
Views: 1,625
Posted By kaiks
Re: Problem with isnull and sscanf, returning unknown command.

Try this:

CMD:me(playerid, params[])
{
if(isnull(params)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /me [action]");

new string[126];
format(string, sizeof(string), "*...
Forum: Scripting Help 08/08/2012, 12:30 PM
Replies: 1
Views: 465
Posted By kaiks
Spawn in hospital problem

I want help for spawning player in hospital after death, but it seems that i have a problem with that.
Here are my codes:

new Dead[MAX_PLAYERS];


public OnPlayerDeath(playerid, killerid,...
Forum: Scripting Help 30/07/2012, 10:06 PM
Replies: 1
Views: 652
Posted By kaiks
Re: How do I disable Vehicle spaw in Interior

new interior = GetPlayerInterior(playerid);
if(interior != 0) return SendClientMessage(playerid, COLOR_GREY, "You can't spawn vehicle in interior");
Forum: Scripting Help 23/07/2012, 10:18 AM
Replies: 7
Views: 1,112
Posted By kaiks
Re: CMD problem

Okay, here's the command.
CMD:saveonfoot(playerid, params[])
{
if(gPlayerLoggedIn[playerid] == 0) return 1;

if(KasutajaInfo[playerid][kAdmin] < 3) {
SendClientMessage(playerid,...
Forum: Scripting Help 23/07/2012, 10:08 AM
Replies: 7
Views: 1,112
Posted By kaiks
Re: CMD problem

I knew it was from the zcmd, but in my other GM, the zcmd isn't included and it works like a charm.
But if i include zcmd in this GM, it crashes the compiler
Forum: Scripting Help 23/07/2012, 09:29 AM
Replies: 7
Views: 1,112
Posted By kaiks
CMD problem

I have this cmd at the bottom of my GM:
CMD:saveonfoot(playerid, params[])

And it gives me a warning and doesn't work in-<a class="inlineAdmedialink" href="#">game</a>:
warning 203: symbol is...
Forum: Scripting Help 22/07/2012, 10:03 PM
Replies: 4
Views: 687
Posted By kaiks
Re: 3 errors in one line

@RockingCamman: No, you're getting it wrong, where do you see "s" in this line: format(string,sizeof(string),PATH,playername);

@VincentDunn: Yes it is, #define PATH "/Kasutajad/%s.ini
Forum: Scripting Help 22/07/2012, 09:55 PM
Replies: 4
Views: 687
Posted By kaiks
Re: 3 errors in one line

Sorry for doublepost, but i wanted to say that it's working on my other GM,
why it doesn't do that here?
Forum: Scripting Help 22/07/2012, 09:15 PM
Replies: 4
Views: 687
Posted By kaiks
3 errors in one line

Got it working
Forum: Scripting Help 18/07/2012, 02:34 PM
Replies: 1
Views: 606
Posted By kaiks
TextDraw help needed

I have this TextDraw bottom of the screen and i want it to be on the right side of the screen.


http://www.upload.ee/image/2523491/Untitled_1.png
Forum: Scripting Help 16/07/2012, 10:34 PM
Replies: 4
Views: 1,101
Posted By kaiks
Re: Detect if engine is not running

Yup, it helped, thanks man.
Forum: Scripting Help 16/07/2012, 10:03 PM
Replies: 4
Views: 1,101
Posted By kaiks
Re: Detect if engine is not running

Sorry for doubleposting, but i need it fast.
Forum: Scripting Help 16/07/2012, 09:14 PM
Replies: 5
Views: 1,170
Posted By kaiks
Re: Disable /go to a player while he's in drag/duel/race

But if the player is in the race and reconnects, then they can tele to him, so you must save the variable.
Forum: Scripting Help 16/07/2012, 09:09 PM
Replies: 4
Views: 1,101
Posted By kaiks
Detect if engine is not running

Okay, i want to do something under this:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == 2)

It must detect, if player's engine is not running, and say "/engine to...
Forum: Scripting Help 15/07/2012, 08:24 PM
Replies: 3
Views: 1,374
Posted By kaiks
Re: error 035: argument type mismatch (argument 3)

Thanks, i'm stupid.

edit: i know, both of your codes would work, i did the first one.
thanks anyway
Forum: Scripting Help 15/07/2012, 08:09 PM
Replies: 3
Views: 1,374
Posted By kaiks
error 035: argument type mismatch (argument 3)

Please help me to get this line fixed.
format(balance, sizeof(balance), COLOR_GREY, "You currently have $%d In your bank account."); PlayerInfo[playerid][pBankAccount];

Error:
error 035:...
Forum: Scripting Help 15/07/2012, 01:26 PM
Replies: 6
Views: 1,069
Posted By kaiks
Forum: Scripting Help 15/07/2012, 01:10 PM
Replies: 6
Views: 1,069
Posted By kaiks
Re: error 008: must be a constant expression; assumed zero

Thanks for help, but it's messed up.
I have vehicle licenses, but it's showing me in game "Licenses: 79", not "Licenses: Olemas" which means "Owning licenses orsmth.."
Forum: Scripting Help 15/07/2012, 12:32 PM
Replies: 6
Views: 1,069
Posted By kaiks
Re: error 008: must be a constant expression; assumed zero

deleted the [20]
and now it give 2 errors
error 006: must be assigned to an array
error 006: must be assigned to an array

to:
{ load = "Puuduvad"; }
{ load = "Olemas"; }
Showing results 1 to 25 of 72

 

All times are GMT. The time now is 06:22 AM.


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