23.09.2009, 17:01
make it like ,
pawn Код:
new teleport;
//this under ongamemodeinit
teleport = SetPlayerCheckpoint(playerid, -129.3005,2255.2163,27.7829,3.0);
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
if(IsPlayerInCheckpoint(playerid,teleport ))
{
SendClientMessage(playerid, color , "Enter Password!);
}
return 1;
}
pawn Код:
// this under onplayercommand
}
if(!strcmp(cmdtext, "/passwordname", true))
{
if(IsPlayerInCheckpoint(playerid,teleport ))
{
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid, 964.106994,-53.205497,1001.124572);
SendClientMessage(playerid, COLOR_RED, "Welcome To CDB and dayav07's Hideout");
}
return 1;