Wysłany: 2014-01-24, 13:57
Nors
Wszystko wiem.
Wiek: 30 Na forum: 4601 dni Posty: 223
Nick w MP: Nors
Piwa : 10
Witam. czy kto? z was m?g? by mi zrobic lub poda? wz?r jak to robi? komend? najlepiej w strcmp na:
/sdj - ma polega? na tym ?e gdy ustane w oboj?tnie w jakim miejscu np. na pla?y lub lotnisku i wpisz t? komende to tworzy st?? a na nim konsole dj.
Mia?o by to wygl?da? tak:
St??: 2592
Konsola: 14820
Gdyby by?y potrzebne pozycje:
Kod:
st?? - CreateObject(2592, 590.20331, 1654.46851, 6.89110, 0.00000, 0.00000, -91.00000
konsola - CreateObject(14820, 590.19312, 1654.39148, 6.89110, 0.00000, 0.00000, 90.00000);
prosz? o szybk? pomoc.
Podpis
Daj piweczko. Pić się chce.
Wysłany: 2014-01-24, 15:16
Sillence
Wiek: 26 Na forum: 5157 dni Posty: 1514
Nick w MP: Sillence
Piwa : 1517
Nie gwarantuj? ?e zadzia?a. :]
Kod: if(!strcmp(cmdtext, "/stol", true))
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
CreateObject(2592, x, y, z, 0.00000, 0.00000, -91.00000);
CreateObject(14820, x, y, z+5.0, 0.00000, 0.00000, 90.00000);
return 1;
}
Wysłany: 2014-01-24, 15:19
=X=
WUJCIO DOBRA RADA
Wiek: 52 Na forum: 4524 dni Posty: 134
SPONSOR
Piwa : 641
"Nors" napisał/a :Witam. czy kto? z was m?g? by mi zrobic lub poda? wz?r jak to robi? komend? najlepiej w strcmp na:
/sdj - ma polega? na tym ?e gdy ustane w oboj?tnie w jakim miejscu np. na pla?y lub lotnisku i wpisz t? komende to tworzy st?? a na nim konsole dj.
Mia?o by to wygl?da? tak:
Obrazek
St??: 2592
Konsola: 14820
Gdyby by?y potrzebne pozycje:
Kod:
st?? - CreateObject(2592, 590.20331, 1654.46851, 6.89110, 0.00000, 0.00000, -91.00000
konsola - CreateObject(14820, 590.19312, 1654.39148, 6.89110, 0.00000, 0.00000, 90.00000);
prosz? o szybk? pomoc.
Dj'ka bez pod?ogi - Dodaj sobie Mp3 do tego.
Pawn /*Coded By: =X=*/
#include <a_samp>
#define KOLOR_IMPREZA 0xAA3333AA
new X_STOLIK ;
new X_KONSOLA ;
public OnPlayerCommandText ( playerid , cmdtext [])
{
if( strcmp ( "/sdj" , cmdtext , true ) == 0 )
{
new Float : x , Float : y , Float : z ;
GetPlayerPos ( playerid , x , y , z );
X_STOLIK = CreateObject ( 2592 , x , y , z - 0.1 , 0.0 , 0.0 , 0.0 ); // - 0.5_|
X_KONSOLA = CreateObject ( 14820 , x , y , z - 0.1 , 0.0 , 0.0 , 0.0 ); //- 0.5_|
new name [ MAX_PLAYER_NAME + 1 ];
new String [ 256 ];
GetPlayerName ( playerid , name , sizeof ( name ));
format ( String , sizeof (String), "|i| %s zaprasza na imprez?!" , name );
SendClientMessageToAll ( KOLOR_IMPREZA , String );
SendClientMessage ( playerid , KOLOR_IMPREZA , "|i| Postawi?e? przeno?n? konsol?!" );
SetPlayerPos ( playerid , x , y , z + 5.0 );
return 1 ;
}
if( strcmp ( "/usun-sdj" , cmdtext , true ) == 0 )
{
DestroyObject ( X_STOLIK );
DestroyObject ( X_KONSOLA );
new name [ MAX_PLAYER_NAME + 1 ];
new String [ 256 ];
GetPlayerName ( playerid , name , sizeof ( name ));
format ( String , sizeof (String), "|i| %s zako?czy? imprezk? - mo?ecie si? rozej??!" , name );
SendClientMessageToAll ( KOLOR_IMPREZA , String );
SendClientMessage ( playerid , KOLOR_IMPREZA , "|i| Usuno?e? przeno?n? konsol?!" );
return 1 ;
}
return 0 ;
}
Dj'ka z pod?og? - Dodaj sobie Mp3 do tego.
Pawn /*Coded By: =X=*/
#include <a_samp>
#define KOLOR_IMPREZA 0xAA3333AA
new X_STOLIK ;
new X_KONSOLA ;
new X_PODLOGA ;
public OnPlayerCommandText ( playerid , cmdtext [])
{
if( strcmp ( "/sdj" , cmdtext , true ) == 0 )
{
new Float : x , Float : y , Float : z ;
GetPlayerPos ( playerid , x , y , z );
X_PODLOGA = CreateObject ( 19129 , x , y , z - 0.9 , 0.0 , 0.0 , 0.0 );
X_STOLIK = CreateObject ( 2592 , x , y , z - 0.1 , 0.0 , 0.0 , 0.0 );
X_KONSOLA = CreateObject ( 14820 , x , y , z - 0.1 , 0.0 , 0.0 , 0.0 );
new name [ MAX_PLAYER_NAME + 1 ];
new String [ 256 ];
GetPlayerName ( playerid , name , sizeof ( name ));
format ( String , sizeof (String), "|i| %s zaprasza na imprez?!" , name );
SendClientMessageToAll ( KOLOR_IMPREZA , String );
SendClientMessage ( playerid , KOLOR_IMPREZA , "|i| Postawi?e? przeno?n? konsol?!" );
SetPlayerPos ( playerid , x , y , z + 5.0 );
return 1 ;
}
if( strcmp ( "/usun-sdj" , cmdtext , true ) == 0 )
{
DestroyObject ( X_STOLIK );
DestroyObject ( X_KONSOLA );
DestroyObject ( X_PODLOGA );
new name [ MAX_PLAYER_NAME + 1 ];
new String [ 256 ];
GetPlayerName ( playerid , name , sizeof ( name ));
format ( String , sizeof (String), "|i| %s zako?czy? imprezk? - mo?ecie si? rozej??!" , name );
SendClientMessageToAll ( KOLOR_IMPREZA , String );
SendClientMessage ( playerid , KOLOR_IMPREZA , "|i| Usuno?e? przeno?n? konsol?" );
return 1 ;
}
return 0 ;
}
Ostatnio zmieniony przez =X= 2014-01-24, 16:33, w całości zmieniany 1 raz
Wysłany: 2014-01-24, 16:33
Nors
Wszystko wiem.
Wiek: 30 Na forum: 4601 dni Posty: 223
Nick w MP: Nors
Piwa : 10
=X= , nIe dzi?ki pod?oga mi nie potrzebna mi wystarczy tylko st??. Przyda si? na jakie? imprezki eventy itp. na serwerze. dzi? napewno si? przyda!
[ Dodano : 2014-01-24, 16:34 ]
=X= , W sampie przyda?y by si? laptopy do dj'ki by by?o ok!
Podpis
Daj piweczko. Pić się chce.
Tagi: stół :: konsolą :: każdym :: miejscu!!
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: