if(strcmp(cmd, "/isls", true) == 0)
{
SetPlayerCheckpoint(playerid, 1184.7054,-3702.7004,5.5726, 10.00);
}
if(strcmp(cmd, "/isle", true) == 0)
{
SetPlayerCheckpoint(playerid, 3708.5895,-1507.7553,8.3544, 10.00);
}
if(strcmp(cmd, "/islw", true) == 0)
{
SetPlayerCheckpoint(playerid, -3524.7919,1341.0784,4.1947, 10.00);
}
if(strcmp(cmd, "/isln", true) == 0)
{
SetPlayerCheckpoint(playerid, 382.2226,3591.6541,5.1390, 10.00);
}
if(strcmp(cmd, "/carls", true) == 0)
{
SetPlayerCheckpoint(playerid, 2719.5486,-2644.2388,23.6925, 10.00);
}
if (IsPlayerInCheckpoint(playerid))
{
DisablePlayerCheckpoint(playerid);
}
this is a nooby question but read Wiki next timepublic OnPlayerEnterCheckpoint(...)
{
if(IsPlayerInRangeOfPoint(playerid,10.0,1184.7054,-3702.7004,5.5726))
{
GameTextForPlayer(playerid,"Welcome to LS",5000,5);
DisablePlayerCheckpoint(playerid);
}
if(IsPlayerInRangeOfPoint(playerid,10.0,3708.5895,-1507.7553,8.3544))
{
GameTextForPlayer(playerid,"Welcome to LE",5000,5);
DisablePlayerCheckpoint(playerid);
}//Just repeat this
return 1;
}
public OnPlayerEnterCheckpoint(...)
{
DisablePlayerCheckpoint(playerid);
return 1;
}
|
WOw
this is a nooby question but read Wiki next timeYou want it to get deleted? pawn Код:
pawn Код:
|
public OnPlayerEnterCheckpoint(...)
{
DisablePlayerCheckpoint(playerid);
return 1;
}
|
public OnPlayerEnterCheckpoint(playerid)
Sure its that, although I never used that callback. |
C:\Users\Alex - Webhost\Desktop\Divinity Gaming Comunity\SA-MP\[SFP]Server For Pilots\gamemodes\sfp.pwn(9891) : error 029: invalid expression, assumed zero C:\Users\Alex - Webhost\Desktop\Divinity Gaming Comunity\SA-MP\[SFP]Server For Pilots\gamemodes\sfp.pwn(9891) : error 004: function "Streamer_OnPlayerEnterCP" is not implemented