07.05.2013, 19:26
Hey guys, I want to know how to make a script that....when player type in chat "how are you" server will send a meesage "i'm good, what about you?'..is that possible?
public OnPlayerText(playerid, text[]) { if(strfind(text, "how", true) != -1 && strfind(text, "get car", true) != -1) { // our code goes here (giving the vehicle) } return 1; } |
public OnPlayerText(playerid, text[]) { if(strfind(text, "how are you", true) != -1) { SendClientMessage(playerid, BLUE, "i'm good, what about you?"); return 0; } return 1; } |