
[HELP] Tizio è andato a ...
#22
Inviato il 07 ottobre 2010 - 16:49
allora ti metto i miei comandi
cosi lo modifichi e lo metti su pastebin :
{
if (strcmp("/Admins", cmdtext, true) == 0)
{
new pname[MAX_PLAYER_NAME];
new pstring[128];
new admincount = 0;
SendClientMessage(playerid, 0x00D90044, "Admins Connessi:");
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i) == 1)
{
if (IsPlayerAdmin(i) == 1)
{
admincount ++;
if (admincount != 0)
{
GetPlayerName(i, pname, MAX_PLAYER_NAME);
format(pstring, 128, "%s", pname);
SendClientMessage(playerid, 0x00D90044, pstring);
}
}
}
}
if (admincount == 0)
{
SendClientMessage(playerid, 0x00D90044,"Non ci sono Admins connessi");
}
return 1;
}
if(strcmp("/LibertyCity", cmdtext, true) == 0)
{
SetPlayerPos(playerid, -779.1674,509.6091,1381.5957 );
SetPlayerInterior(playerid, 1);
SendClientMessage(playerid, COLOR_WHITE, "Benvenuto nella vecchia Liberty City fai attenzione all'insolidità!");
return 1;
}
if(strcmp("/Spawn1", cmdtext, true) == 0)
{
SetPlayerPos(playerid, 1170.7137, -1489.4867, 22.7553);
SendClientMessage(playerid, COLOR_WHITE, "Benvenuto nella zona di spawn numero 1!");
return 1;
}
if(strcmp("/Spawn2", cmdtext, true) == 0)
{
SetPlayerPos(playerid, -1754.1628, 962.2805, 24.8828);
SendClientMessage(playerid, COLOR_WHITE, "Benvenuto nella zona di spawn numero 2!");
return 1;
}
if(strcmp("/Spawn3", cmdtext, true) == 0)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SendClientMessage(playerid, COLOR_WHITE, "Benvenuto nella zona di spawn numero 3!");
return 1;
}
if(strcmp("/Jump1", cmdtext, true) == 0)
{
SetPlayerPos(playerid, 1547.8453,-1366.4119,326.2109);
SendClientMessage(playerid, COLOR_WHITE, "Benvenuto al Jump numero 1 qui puoi fare paracadutismo o seguire percorsi in bici, moto e auto");
return 1;
}
if(strcmp("/Jump2", cmdtext, true) == 0)
{
SetPlayerPos(playerid, -1753.6439,885.1646,295.8750 );
SendClientMessage(playerid, COLOR_WHITE, "Benvenuto al Jump numero 2 qui puoi fare paracadutismo o seguire percorsi in bici,moto e auto!");
return 1;
}
if(strcmp("/Jump3", cmdtext, true) == 0)
{
SetPlayerPos(playerid, 2058.2551,2435.0183,165.6172 );
SendClientMessage(playerid, COLOR_WHITE, "Benvenuto al Jump numero 3 qui puoi fare paracadutismo o seguire percorsi in bici,moto e auto!");
return 1;
}
if(strcmp("/GroveStreet", cmdtext, true) == 0)
{
SetPlayerPos(playerid, 2480.2478,-1723.1355,13.5547 );
SendClientMessage(playerid, COLOR_WHITE, "Benvenuto a Groove Street territorio della Grove Street Families!");
return 1;
}
if(strcmp("/Porto1", cmdtext, true) == 0)
{
SetPlayerPos(playerid, 2750.9036,-2568.6646,13.3325);
SendClientMessage(playerid, COLOR_WHITE, "Benvenuto al Porto di Los Santos!!");
return 1;
}
if (strcmp("/teletrasporti", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, COLOR_WHITE, "Per andare nella zona di Spawn1 digita /Spawn1 ");
SendClientMessage(playerid, COLOR_WHITE, "Per andare nella zona di Spawn2 digita /Spawn2 ");
SendClientMessage(playerid, COLOR_WHITE, "Per andare nella zona di Spawn3 digita /Spawn3 ");
SendClientMessage(playerid, COLOR_WHITE, "Per andare al palazzo piu alto di Los Santos digita /Jump1 ");
SendClientMessage(playerid, COLOR_WHITE, "Per andare al palazzo piu alto di San Fierro digita /Jump2 ");
SendClientMessage(playerid, COLOR_WHITE, "Per andare al palazzo piu alto di Las Venturas digita /Jump3 ");
SendClientMessage(playerid, COLOR_WHITE, "Per andare a Liberty City digita /LibertyCity ");
SendClientMessage(playerid, COLOR_WHITE, "Per andare Groove Street digita /GroveStreet ");
SendClientMessage(playerid, COLOR_WHITE, "Per andare al porto di Los Santos digita /Porto1 ");
}
if (strcmp("/comandi", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, COLOR_GREY, "Per vedere tutti i teletrasporti digita /Teletrasporti ");
SendClientMessage(playerid, COLOR_GREY, "Per farti esplodere digita /Kamikaze ");
SendClientMessage(playerid, COLOR_GREY, "Per vedere la lista dei colori da applicare al tuo nome digita /Colori ");
SendClientMessage(playerid, COLOR_GREY, "Per visualizare gli admin connessi digita /Admins ");
return 1;
}
return 0;
}
cosi lo modifichi e lo metti su pastebin :
{
if (strcmp("/Admins", cmdtext, true) == 0)
{
new pname[MAX_PLAYER_NAME];
new pstring[128];
new admincount = 0;
SendClientMessage(playerid, 0x00D90044, "Admins Connessi:");
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i) == 1)
{
if (IsPlayerAdmin(i) == 1)
{
admincount ++;
if (admincount != 0)
{
GetPlayerName(i, pname, MAX_PLAYER_NAME);
format(pstring, 128, "%s", pname);
SendClientMessage(playerid, 0x00D90044, pstring);
}
}
}
}
if (admincount == 0)
{
SendClientMessage(playerid, 0x00D90044,"Non ci sono Admins connessi");
}
return 1;
}
if(strcmp("/LibertyCity", cmdtext, true) == 0)
{
SetPlayerPos(playerid, -779.1674,509.6091,1381.5957 );
SetPlayerInterior(playerid, 1);
SendClientMessage(playerid, COLOR_WHITE, "Benvenuto nella vecchia Liberty City fai attenzione all'insolidità!");
return 1;
}
if(strcmp("/Spawn1", cmdtext, true) == 0)
{
SetPlayerPos(playerid, 1170.7137, -1489.4867, 22.7553);
SendClientMessage(playerid, COLOR_WHITE, "Benvenuto nella zona di spawn numero 1!");
return 1;
}
if(strcmp("/Spawn2", cmdtext, true) == 0)
{
SetPlayerPos(playerid, -1754.1628, 962.2805, 24.8828);
SendClientMessage(playerid, COLOR_WHITE, "Benvenuto nella zona di spawn numero 2!");
return 1;
}
if(strcmp("/Spawn3", cmdtext, true) == 0)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SendClientMessage(playerid, COLOR_WHITE, "Benvenuto nella zona di spawn numero 3!");
return 1;
}
if(strcmp("/Jump1", cmdtext, true) == 0)
{
SetPlayerPos(playerid, 1547.8453,-1366.4119,326.2109);
SendClientMessage(playerid, COLOR_WHITE, "Benvenuto al Jump numero 1 qui puoi fare paracadutismo o seguire percorsi in bici, moto e auto");
return 1;
}
if(strcmp("/Jump2", cmdtext, true) == 0)
{
SetPlayerPos(playerid, -1753.6439,885.1646,295.8750 );
SendClientMessage(playerid, COLOR_WHITE, "Benvenuto al Jump numero 2 qui puoi fare paracadutismo o seguire percorsi in bici,moto e auto!");
return 1;
}
if(strcmp("/Jump3", cmdtext, true) == 0)
{
SetPlayerPos(playerid, 2058.2551,2435.0183,165.6172 );
SendClientMessage(playerid, COLOR_WHITE, "Benvenuto al Jump numero 3 qui puoi fare paracadutismo o seguire percorsi in bici,moto e auto!");
return 1;
}
if(strcmp("/GroveStreet", cmdtext, true) == 0)
{
SetPlayerPos(playerid, 2480.2478,-1723.1355,13.5547 );
SendClientMessage(playerid, COLOR_WHITE, "Benvenuto a Groove Street territorio della Grove Street Families!");
return 1;
}
if(strcmp("/Porto1", cmdtext, true) == 0)
{
SetPlayerPos(playerid, 2750.9036,-2568.6646,13.3325);
SendClientMessage(playerid, COLOR_WHITE, "Benvenuto al Porto di Los Santos!!");
return 1;
}
if (strcmp("/teletrasporti", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, COLOR_WHITE, "Per andare nella zona di Spawn1 digita /Spawn1 ");
SendClientMessage(playerid, COLOR_WHITE, "Per andare nella zona di Spawn2 digita /Spawn2 ");
SendClientMessage(playerid, COLOR_WHITE, "Per andare nella zona di Spawn3 digita /Spawn3 ");
SendClientMessage(playerid, COLOR_WHITE, "Per andare al palazzo piu alto di Los Santos digita /Jump1 ");
SendClientMessage(playerid, COLOR_WHITE, "Per andare al palazzo piu alto di San Fierro digita /Jump2 ");
SendClientMessage(playerid, COLOR_WHITE, "Per andare al palazzo piu alto di Las Venturas digita /Jump3 ");
SendClientMessage(playerid, COLOR_WHITE, "Per andare a Liberty City digita /LibertyCity ");
SendClientMessage(playerid, COLOR_WHITE, "Per andare Groove Street digita /GroveStreet ");
SendClientMessage(playerid, COLOR_WHITE, "Per andare al porto di Los Santos digita /Porto1 ");
}
if (strcmp("/comandi", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, COLOR_GREY, "Per vedere tutti i teletrasporti digita /Teletrasporti ");
SendClientMessage(playerid, COLOR_GREY, "Per farti esplodere digita /Kamikaze ");
SendClientMessage(playerid, COLOR_GREY, "Per vedere la lista dei colori da applicare al tuo nome digita /Colori ");
SendClientMessage(playerid, COLOR_GREY, "Per visualizare gli admin connessi digita /Admins ");
return 1;
}
return 0;
}
Livello Scripter: Apprendista
#23
Inviato il 07 ottobre 2010 - 17:06
Ecco a te:
http://pastebin.com/3bC5hb5s
A me non da ne un errore ne un warning... Ma sei sicuro di aver postato tutti i comandi? Se non mi sbaglio c'era un comando /kamikaze e non l'hai postato... Potrebbe essere anche quello a buggare... Oppure il /colori... Boh alcuni non li hai messi xD Io ho fatto solo questi e non mi da problemi
.
PS: Pastebin purtroppo ha sfasato l'identazione come al solito :S
PS2: La prossima volta non postare un intero OnPlayerCommandText in un post... Leggi il regolamento di sezione... Devi usare Pastebin
.
http://pastebin.com/3bC5hb5s
A me non da ne un errore ne un warning... Ma sei sicuro di aver postato tutti i comandi? Se non mi sbaglio c'era un comando /kamikaze e non l'hai postato... Potrebbe essere anche quello a buggare... Oppure il /colori... Boh alcuni non li hai messi xD Io ho fatto solo questi e non mi da problemi

PS: Pastebin purtroppo ha sfasato l'identazione come al solito :S
PS2: La prossima volta non postare un intero OnPlayerCommandText in un post... Leggi il regolamento di sezione... Devi usare Pastebin

Messaggio modificato da Peppinux aka Peppe_Stasu il 07 ottobre 2010 - 17:07
#26
Inviato il 07 ottobre 2010 - 17:23
C:\Documents and Settings\PC\Documenti\GTA San Andreas User Files\Samp Server 0.3b\gamemodes\x3.pwn(613) : warning 204: symbol is assigned a value that is never used: "maxPlayers"
C:\Documents and Settings\PC\Documenti\GTA San Andreas User Files\Samp Server 0.3b\gamemodes\x3.pwn(611) : warning 204: symbol is assigned a value that is never used: "string"
ora fa scusa il disturbo
C:\Documents and Settings\PC\Documenti\GTA San Andreas User Files\Samp Server 0.3b\gamemodes\x3.pwn(611) : warning 204: symbol is assigned a value that is never used: "string"
ora fa scusa il disturbo

Livello Scripter: Apprendista
#34
Inviato il 07 ottobre 2010 - 17:53
Ma sicuramente è giusto non so dove sbaglio ç_ç e poi non credo sia il punto piu difficile di una gm non capisco xche non riesco ora provo a rimettere su pastebin il mio codice attuale vediamo
ecco qui il mio codice fatale lol
http://pastebin.com/1qyzFpHZ
ecco qui il mio codice fatale lol
http://pastebin.com/1qyzFpHZ
Livello Scripter: Apprendista
#37
Inviato il 07 ottobre 2010 - 18:12
Prova a correggere e fammi sapere... Non ti preoccupare... Non hai fatto una figura di merda... Sei ancora alle prime armi e stai imparando e mi stai simpatico specialmente perchè non sei come quelli che non sanno niente e "scriptano" GM RP... Io sono veramente felice di aiutarti... Comunque fammi sapere
.

Messaggio modificato da Peppinux aka Peppe_Stasu il 07 ottobre 2010 - 18:13