13.09.2009, 07:02
Quote:
|
Good work, but could you explain me how do I make a command only available when player is in marker / checkpoint? if (strcmp(cmdtext, "/command", true)==0) { if(IsPlayerInCheckpoint(playerid)) { //do anything here return 1; } here Cheesy https://sampwiki.blast.hk/wiki/IsPlayerInCheckpoint I know that, but if I have many checkpoints, and only available in ONE of them. |
Quote:
|
new cp1; |
Quote:
|
cp1 = CreateCheckpoint(ownerid, chpid, Float osX, Float osY, Float osZ, Float ize); |
Quote:
|
if (strcmp(cmdtext, "/command", true)==0) { if(IsPlayerInCheckpoint(playerid)==cp1) { //do anything here return 1; } |


osX, Float
ize);