|
|
#1 |
|
Big Clucker
![]() ![]() Join Date: May 2012
Location: Romania
Posts: 151
Reputation: 1
|
In acest tutorial am sa va invat cum sa faceti un Checkpoint
Mai īntai de toate aveti nevoie pawno In al doilea rand ai nevoie de ceva cunostinte de baza pawno Include: Code:
#include <a_samp> #include <zcmd> Definim: Code:
#define COLOR_WHITE 0xFFFFFFAA Code:
new CP[MAX_PLAYERS]; Code:
CMD:lucru(playerid, params[])
{
CP[playerid] =1;
SetPlayerCheckpoint(playerid, 1577.3411,1504.8600,10.5608, 4.0); //Aeroportul LV
SendClientMessage(playerid,COLOR_WHITE,"Mesajul");
return 1;
}
Code:
public OnPlayerEnterCheckpoint(playerid)
{
if (CP[playerid] ==1)
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid,COLOR_WHITE"Mesajul");
GivePlayerMoney(playerid, +15000);
}
return 1;
}
Code:
CMD:stop(playerid, params[])
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE, "Mesajul");
GivePlayerMoney(playerid, -1000);
return 1;
}
Code:
#include <a_samp>
#include <zcmd>
#define COLOR_WHITE 0xFFFFFFAA
new CP[MAX_PLAYERS];
CMD:lucru(playerid, params[])
{
CP[playerid] =1;
SetPlayerCheckpoint(playerid, 1577.3411,1504.8600,10.5608, 4.0);
SendClientMessage(playerid,COLOR_WHITE,"Mesajul");
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
if (CP[playerid] ==1)
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid,COLOR_WHITE"Mesajul");
GivePlayerMoney(playerid, +15000);
}
return 1;
CMD:stop(playerid, params[])
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE, "Mesajul");
GivePlayerMoney(playerid, -1000);
return 1;
}
}
|
|
|
|
|
|
#2 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Sep 2010
Location: Romanian
Posts: 861
Reputation: 15
|
)ai creat brackets si 4 erori si pentru ce ai creat comanda stop? atat ai creat checkpoint?ehh...asta nui tot,CreateDynamicCP, si public OnPlayerEnterCheckpoint(playerid) { if (CP[playerid] ==1) { DisablePlayerCheckpoint(playerid); SendClientMessage(playerid,COLOR_WHITE"Mesajul"); GivePlayerMoney(playerid, +15000); } si return 1; dupa brackets? )
Last edited by Skaizo; 22/06/2012 at 03:18 PM. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| help with checkpoint | Rafa | Scripting Help | 3 | 06/09/2011 02:11 PM |
| Checkpoint !help! | Assyria | Help Archive | 5 | 16/04/2010 05:19 AM |
| How to know who's at the checkpoint? | krawN | Help Archive | 2 | 14/07/2009 06:03 PM |
| Checkpoint ? | UsaBoy91 | Help Archive | 2 | 11/07/2009 08:46 PM |
| checkpoint id? | nesty | Help Archive | 3 | 08/05/2009 08:22 PM |